I would like to offer the user the ability to link to specific pages within a collection set.
Eg allow the user to link to pages within a ‘case studies’ section either from a drop down list or a category style tag search box.
I would like to offer the user the ability to link to specific pages within a collection set.
Eg allow the user to link to pages within a ‘case studies’ section either from a drop down list or a category style tag search box.
You'll need to use a custom field type to do this. I've made one in the past which I use on most of our sites. Here is a link to a gist of it. You'll need to create a folder in perch/addons/fieldtypes/ and call it page_list. Copy the page_list.class.php file into the new folder and you should be able to use it in your templates now.
There's a few examples on how to use it in the gist as well
Thanks Byron,
I'll take a look. I can see a parent attribute in the examples, would that accept a collection?
If you want to link to a collection you can use the perch related field instead
I want to link to a page within a collection.
E.g. Have a collection of 'case studies' and be able to link to one of them.
If you want to link to a page use the field type from the Gist, if you want to link to a collection use the related field type. Doesn't matter where you are linking from or what template the field goes into
Thanks Byron, I'l have a look later.
I was trying to ask if I used the page_list field type could I limit the pages shown to a pages within a specific collection, the same way you can limit them to children of a specific parent page.