Forum

Thread tagged as: Question, Suggestions

Collections Feature Request

Hello,

Can I request a feature that for collections we can set custom fields to that specific collection on a whole so when we are outputting the collection items I can also pull through some information about the collection too?

The categories app has what I mean you have a template for the set and a template for the category.

Quite often I listing the collection items I will use perch:before tags and would be handy to be able to get the collection name and perhaps a description.

Dexter Harrison

Dexter Harrison 29 points

  • 4 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

What sort of thing would that be used for?

So say I have a collection of case studies and I want to display all of my case studies on a page.

Before the output of the list of case studies I want to be able to display a title "Case Studies", a description and perhaps a few images of customer logos.

At the moment, I have to create a separate region for that, which means I have to create another template and I have to call that region along with the collection for each page I need to collection "title".

What would be great as like in categories there is "Set Options" where I can create any fields I want, we could do the same in collections.

So I could just create a template like the below: (I've removed extra attributes for easy reading)

<perch:before>
<h1><perch:collection id="collectionTitle" /></h1>
<perch:collection id="collectionDesc" />
<ul>
</perch:before>
    <li></perch:content id="itemTitle" /></li>
<perch:after>
</ul>
<img src="<perch:collection id="collectionImage" />">
</perch:after>
Drew McLellan

Drew McLellan 2638 points
Perch Support

Ok, we'll give that some thought. Thanks.