Search code examples
xsltplonethemingdiazo

Diazo: if not for if-path


I'm working on a site with multiple theme base on path:

<rules if-path="//">
  <theme href="index.html"/>
</rules> 

<rules if-path="/news">
  <theme href="news.html"/>
</rules>

<rules if-path="/Members">
  <theme href="news.html"/>
</rules>

...

Now I have a rule that I want to apply if path is not /news. How can I achieve that ?


Solution

  • I've now added if-not-path to the development version of diazo. See: https://github.com/plone/diazo