inkredible Posted April 13, 2017 Posted April 13, 2017 Hi, why don't you offer the possibility to sort records inside of the databases so that this order can be used in blocks. My use case: I am using a block for a sidebar navigation menu and I had to setup a custom field which allows me position my records in the navigation. The efforts to maintain that (for example when I want to add a record inbetween two other records) is too much. The code I am using to get the sorted records is: {{$records = $recordClass::getItemsWithPermission( array(), 'LENGTH( '. $database->field_sort .'), ' . $database->field_sort . ' ' . $database->field_direction, 100 );}}
Recommended Posts
Archived
This topic is now archived and is closed to further replies.