Reading Page Attributes in Page List
Permalink
I have a quite complicated (I think) Question:
I have various sites (say: "b", "c" and "d") under a certain site in my sitemap (say "a"), that are all listed via page list (so "b", "c" and "d" are all listed via page list on "a"). the pages all have a certain image page attribute.
is it possible to read out these image attributes and have them somehow shown in my page list? i know I can read out the image attribute of the page i am on right now (f.e. like this: "<?php echo($c->getAttribute('bckimage')->getVersion()->getRelativePath());?>" - but is it possible, to read out image attributes of sites that are just linked to via page list?
I have various sites (say: "b", "c" and "d") under a certain site in my sitemap (say "a"), that are all listed via page list (so "b", "c" and "d" are all listed via page list on "a"). the pages all have a certain image page attribute.
is it possible to read out these image attributes and have them somehow shown in my page list? i know I can read out the image attribute of the page i am on right now (f.e. like this: "<?php echo($c->getAttribute('bckimage')->getVersion()->getRelativePath());?>" - but is it possible, to read out image attributes of sites that are just linked to via page list?
In your custom template, you'll have a loop that goes through each of the pages in the page list. In that loop you just need to pull each page's value for the image attribute then display it on the page. Here is some code that shows you how:
Hope that helps!
Blake