Forum

Thread tagged as: Question, Problem

perch_content_custom Sort order

I have images from a region of a page, these link but I need to order these in weight so in the region I have put a weight area, but it only orders by the first number, is there a way of order by 100, 55, 50.

John Robinson

John Robinson 0 points

  • 7 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

Try using sort-type

'sort-type' => 'numeric'

Thanks, I have another question regarding sorting. I pull through data from some pages onto a general news page using this snippet...

<?php
     perch_content_custom('News', array(
       'page'=>'/*',
      'template'=>'news.html',
    )); 
?>

I'd like the customer to be able to sort manually. Reordering the pages in the backend using 'reorder pages' doesn't change the order in which they appear listed on the page. What could I add to enable this?