[Feature Request] Attributes in Page List Block

Permalink
I'm unsure if this is already possible, but it would be great to be able to pass attributes in a page list block.

For example, if we have a list of events using a custom page type. I would like to be able to display the event start date on the page list. Which is currently set as an attribute.

What do you think?

 
pvernaglia replied on at Permalink Reply
pvernaglia
Loop through $pages and pull the attributes you want.

foreach ($pages as $page){
         echo $page->getCollectionAttributeValue('attribute_name');
}
Tom0 replied on at Permalink Reply
Awesome, I will look into implementing this at block level. Have it as an array where you can select the attributes for it to print. Rather than hard coding it into the page.
JohntheFish replied on at Permalink Reply
JohntheFish
You may be able to do what you describe with Page List Plus - worth checking with the developer.

You can certainly do it with a combination of my Uber List and Magic Data addons, either by themselves or in association with a regular page list block.
juddc replied on at Permalink Reply
juddc
I default to using a custom template for the Page List block. Tighter integration with the Page List and Custom Attributes without having to hard code something would be cool though.
Tom0 replied on at Permalink Reply
Good idea juddc! I didn't think of that one. I would love to see this natively implemented just to add more versatility to Concrete5. For example you could make a property listing site to a car listing site without havingn to touch any code. That would be amazing.