You should use the Alternate Theme settings to define alternate layouts when the URL matches a specific regular expression.
For example, we have a Plone site called "Plone" and is available at localhost url: 8080 / Plone. To provide a different layout for the Homepage, we can define the following in the registry (or TTW in the Plone Control Panel> XDV Settings section ):
<record field="alternate_themes" interface="collective.xdv.interfaces.ITransformSettings" name="collective.xdv.interfaces.ITransformSettings.alternate_themes"> <field type="plone.registry.field.List"> <description>Define alternate themes and rules files depending on a given path. Should be of a form 'path theme rules' (or 'path rules' with xdv 0.4), where path may use a regular expression syntax, theme is a file path or URL to the theme template and rule is a file path to the rules file.</description> <required>False</required> <title>Alternate themes</title> <value_type type="plone.registry.field.TextLine"> <title>Theme</title> </value_type> </field> <value> <element>^.*/Plone(/)?$ python://my.xdvtheme/templates/alternative/index.html python://my.xdvtheme/rules/alternative/index-rules.xml</element> </value> </record>
Thus, the home page will use an alternative layout, and all other pages will use the main layout specified in the Subject and Rules template
You can provide several definitions according to the various sections of your site.
source share