Forum

Thread tagged as: Suggestions, Api

Sort perch_content_custom by the order of pages in the CMS

Hi,

The website I'm working on has several products listed under three different product lines. Using perch_content_custom, I'm getting a region from these product pages that stores a blurb about the product, and then displaying it on the parent page.

The client asked me how they could sort the order of the blurbs; in their mind re-arranging the products' pages in the CMS list should sort the items on the frontend; this makes sense to me as I'd also expect this kind of behaviour. Unfortunately there is no way of accessing the order of the pages as seen in the CMS admin interface as this doesn't get exposed.

Would it be possible to allow sorting in perch_content_custom using the page's pageOrder value that gets stored in the DB? I'm not sure how many people encountered this before but it would be a nice to have.

This question has been asked here before: https://forum.grabaperch.com/forum/11-07-2014-sorting-by-page-order

Thanks, Sara

Sara Coutinho

Sara Coutinho 0 points

  • 6 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

You can't currently, but we'll log the request.

Hi That would be a very useful feature for a project I'm working on. Thanks