Hi,
Is there a way I can basically say something like:
if this document is a child document of parent document with id 5, then show this chunk, else do nothing?
Basically I want to show the date on a news article (wrapped in my custom html), it shows fine on my news listing page (using ditto for that though).
Can’t quite get my head round it!
Thanks
Something like this should work:
[+phx:if=`[!getparent-snippet return ID!]`:is=`5`then=`{{chunk}}`:else=``+]
UltimateParent snippet [!UltimateParent? &id=`[*id*]`!] maybe...
Test with [[UltimateParent]] ?
Sweet! You learned fast!