"Element exists?" condition
Posted: Tue Feb 14, 2012 10:17 am
Hi,
I've read the OpenDoPe conventions for conditionals and couldn't find anything about basing a condition on the existence of an element.
In my template I want a whole chapter to not be displayed when elements of a certain type don't exist (basically meaning the XPath is invalid).
Is there a way to do this other than adding a boolean attribute somewhere that specifies whether such elements exist?
Thank you!
-Olivier
I've read the OpenDoPe conventions for conditionals and couldn't find anything about basing a condition on the existence of an element.
In my template I want a whole chapter to not be displayed when elements of a certain type don't exist (basically meaning the XPath is invalid).
Is there a way to do this other than adding a boolean attribute somewhere that specifies whether such elements exist?
Thank you!
-Olivier