Hello there,
I have a very simple question: how do I get the parent title of a document? I read the
documentation but somehow I don’t get it. I tried all combinations [[+parent]], [[++parent]] etc pp but obviously I don’t understand it.
What I want to do?
Say I have the following document tree
web
--> EN
-----> Page 1
-----> Page 2
--> DE
-----> Page 1
-----> Page 2
I have a header and a footer chunk for each language: header_DE, header_EN and footer_DE, footer_EN.
Now I don’t want to duplicate my template, so I want to check the parent title to dynamically insert the appropriate header and footer in the template This I want to achieve by templates which llook like this (example):
[[$Header_<getParentTitleofDocument>]]
[[*content]]
[[$Footer_<getParentTitleofDocument>]]
which should produce
[[$Header_DE]]
[[*content]]
[[$Footer_DE]]
or
[[$Header_EN]]
[[*content]]
[[$Footer_EN]]
respectively.
I hope this works - but for that to try I have to get the parent title
Help?
Thanks,
noned