Hi.

I'm working with diazo and I want to do some sort of if-then-else structure.
But i don't know how to do it.

Currently, what I do is this:

    <!-- Stuff that happens on all pages -->
    <xi:include href="rules-common.xml" />
    <!-- Stuff that happens on Plone's Documents -->
    <rules css:if-content="body.portaltype-document">
      <xi:include href="rules-document.xml" />
    </rules>
    <!-- Stuff that happens on Plone's Collection Views -->
    <rules css:if-content="body.portaltype-topic">
      <xi:include href="rules-topic.xml" />
    </rules>

What I want to do is this:

Include rules-common.xml for all pages.

If the page is a Plone Document, load rules-document.xml
if the page is a Collection view, load rules-topic.xml
otherwise, load a rules-generic.xml


How can I achieve this on xdv/Diazo?

--
Noe
_______________________________________________
Product-Developers mailing list
[email protected]
https://lists.plone.org/mailman/listinfo/product-developers

Reply via email to