Am working on a navigational menu requiring both text links as well as images associated with eah page. The text links work fine, but I am stumped after trying to assosiate the images with the page link.
Yeah, you where trying to grab the linkBillede from the current page (by using $currentPage), but it should really grab it from the current node that's been iterated through (by using . instead - actually you could probably remove the ./ in front of the linkBillede as well).
And then I just used the id we found in the $MediaID inside the GetMedia-extension in the $media-variable :)
Exactly. I knew I was not addressing the proper nodes, rather the current page loaded in the browser. I was just uncertain how to address the page node associated with my images. So in order to grab the image from the iterated pages, we create a variable for the property, select the iteration at the top node and pass the property into GetMedia(), it would seem. And you are correct, it works without ./
GetMedia after page id
Hi,
Am working on a navigational menu requiring both text links as well as images associated with eah page. The text links work fine, but I am stumped after trying to assosiate the images with the page link.
The navi should work like this: http://www.koriaarhus.dk/
My code:
Hi Dwayne
Could you try to change this:
To this:
Does that make any difference?
/Kim A
That did the trick! You addressed the top node with ./linkBillede, correct? And then called the variable mediaID instead of currentPage/linkBillede.
Yeah, you where trying to grab the linkBillede from the current page (by using $currentPage), but it should really grab it from the current node that's been iterated through (by using . instead - actually you could probably remove the ./ in front of the linkBillede as well).
And then I just used the id we found in the $MediaID inside the GetMedia-extension in the $media-variable :)
/Kim A
Exactly. I knew I was not addressing the proper nodes, rather the current page loaded in the browser. I was just uncertain how to address the page node associated with my images. So in order to grab the image from the iterated pages, we create a variable for the property, select the iteration at the top node and pass the property into GetMedia(), it would seem. And you are correct, it works without ./
is working on a reply...