Skip to content. | Skip to navigation

Personal tools


You are here: Home / Tips / Diazo Practice

Diazo Practice


<copy attributes="href"
 content="//*[@id='portal-logo']" />


<replace css:theme="#portal-toolbar"
         css:if-content=".userrole-authenticated" />

diazotheme.plonecom plonetheme.diazo_sunburst publisher theme quintagroup.theme.publishers

Identifying ControlPanel

grabs each list item from Plone, and inserts a list item as a divider between each one. Note that the css: prefix can also be added to the XSLT within Diazo rules to use CSS style selectors.

<replace css:theme-children=".mainNav">
 <xsl:for-each css:select="#portal-globalnav > li">
   <li class="divider"></li>
   <xsl:apply-templates css:select="li.plain, li.selected"/>
 <li class="divider"></li>

pulls all links from the user dropdown and puts them into a list, instead of having them in a definition list.

<xsl:for-each css:select="#portal-personaltools a">
   <xsl:copy-of select="current()"/>

Managing Resources

Firebase vs

if-path works for but not for (using web server rewrite), maybe template-some_view is worth trying.

Parent vs Children Themes

Turbo XDV Diazo