The Theme Tag

Chrissy Wainwright

Minimum Required

<theme href="index.html"/>

At least one theme tag is required for Diazo to know which HTML file to use.

The file can be called anything, as long as the filename and this href match.

Using Multiple Theme Tags

<theme href="home.html" if-path="/ /Plone/ /front-page/"/>
<theme href="landing.html" css:if-content=".section_landing"/>
<theme href="full-width.html" css:if-not-content="#portal-column-two"/>
<theme href="index.html" css:if-content=".template-manage-portlets"/>
<theme href="index.html"/>

Pros and Cons

Using multiple static files can be helpful when the layouts are completely different.

But this can make static content more difficult to manage when it is in multiple places.

Try to use as few static pages as possible.

For example, if the structure of the heading area changes, it has to be updated in all the static templates.

No Theme

<notheme if="$ajax_load" />
<notheme if-path="delete_confirmation/" />

<notheme> allows you to specify paths that should not display the Diazo theme.

All <notheme> are used as long as the condition is true.

The above code is not needed if all rules are wrapped in <rules css:if-content="#visual-portal-wrapper">.

SpaceForward
Right, Down, Page DownNext slide
Left, Up, Page UpPrevious slide
POpen presenter console
HToggle this help