Jimi Wikman Posted May 13 Posted May 13 I am playing around with the Featured record's template, and I wonder if there is a way to add more sorting options than what you set on the database level?
Solution opentype Posted May 13 Solution Posted May 13 Sorting is only available with the listing templates, not with those frontpage/article views. One could however create listing templates that look like those frontpage/article views. Jimi Wikman and Sonya* 1 1
Jimi Wikman Posted May 13 Author Posted May 13 So if I want both top-rated and newest, then my options are to create blocks for whichever I don't have on the database level?
Sonya* Posted May 13 Posted May 13 (edited) 33 minutes ago, opentype said: One could however create listing templates that look like those frontpage/article views. This is what I do regularly. Example for recordRow in Listing Template: <div id='elTable_{$table->uniqueId}1' data-role="ipsGrid"> {{$articles = $rows;}} {{foreach $articles as $id => $record}} <div class="ipsBox ipsSpacer_top{{if $record->hidden()}} ipsModerated{{endif}}" data-rowID="{$record->_id}"> {template="entry" app="cms" location="database" group="FXPages_Blog_List_Category_Articles" params="$record, $record::database(), $table"} </div> {{endforeach}} </div> I just replace everything belonging to the row with an entry from Featured template. Edited May 13 by Sonya* Jimi Wikman 1
Jimi Wikman Posted May 13 Author Posted May 13 @opentype @Sonya* as always you save the day 🙂 Thank you 🙂 Sonya* 1
Recommended Posts