I’m calling UltimateParent snippet in my template, so that I can have a custom header depending on which language folder the page is in (one folder ’english’, one folder ’dutch’ etc. with all pages below those).
However I need a unique number, not the page same, so that I can make a call a bit like this:
<img src="[(base_url)]assets/templates/mytemplate/images/header[~[[UltimateParent]]~].gif" />
And it would output this:
1. For English (menuindex 1 or other unique number):
<img src="assets/templates/mytemplate/images/header1.gif" />
2. For Dutch (menuindex 2 or other unique number):
<img src="assets/templates/mytemplate/images/header2.gif" />
Like I said, the call gives me a page name, but not a unique number (or string) which I could use to change the header to reflect the page’s language.