Is it possible to specify a pattern in Diazo <notheme if-path = ... rule?

If not, can I do this with the built-in XSLT? And if so, how?

I believe this is not possible, based on a search for โ€œwildcardsโ€ in Diazo docs , but I wanted to make sure I didn't miss something.

This would be especially convenient in allowing ZMI to go through unthemed.

eg.

<notheme if-path="manage*" /> <notheme if-path="portal*" /> 
+7
source share
2 answers

We tried to match regular expressions to the collective .xdv, but that didnโ€™t work too well - just think about what happens when someone creates a page called "management". Even manage_* ends, including the manage_translations page, which should be themed. Our current practice is to use:

 <rules css:if-content="#visual-portal-wrapper"> 

Hopefully we can find a way to fix it in response.setHeader X-theme-Disabled for the corresponding DTML bits (and several ZPTs) in ZMI.

+7
source

You can do this with an XPath expression:

 <notheme if="contains($path, 'manage')"/> 

But be careful :-)

+2
source

All Articles