Assuming all of your other pages are beneath the homepage, you can use the ancestor-or-self axis to find the homepage and retrieve properties from it..something like:
Yes it's possible, you just need to start at the root, unfortunately I'm not sure of the exact syntax since it looks like you are using the legacy XML schema. But I think this might work:
How do I 'GetMedia' item specified in another page??
Hi,
I am using the code below, on a homepage, to display a banner (there's more code and it scrolls through various images)
How do I use this code on other pages throughout the site but still referencing the images (eg. Slide1) that are specified on the homepage?
Thanks :)
Rachel
Hi Rachel,
Assuming all of your other pages are beneath the homepage, you can use the ancestor-or-self axis to find the homepage and retrieve properties from it..something like:
Replacing 'Homepage' with the alias of your "Homepage" document type.
-Tom
Thanks Tom but unfortunately my pages are not child pages of the homepage - is there another way around this?
Rach
Yes it's possible, you just need to start at the root, unfortunately I'm not sure of the exact syntax since it looks like you are using the legacy XML schema. But I think this might work:
(assuming your Homepage is directly beneath the root Content node)
-Tom
That code works perfectly! Thanks Tom :)
is working on a reply...