-
- 39 Posts
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
-
- 2,877 Posts
Something like this should work:
[+phx:if=`[!getparent-snippet return ID!]`:is=`5`then=`{{chunk}}`:else=``+]
UltimateParent snippet [!UltimateParent? &id=`[*id*]`!] maybe...
-
- 2,877 Posts
Test with [[UltimateParent]] ?
-
- 2,877 Posts
Sweet! You learned fast!