Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted April 13, 20177 yr 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 );}}
Archived
This topic is now archived and is closed to further replies.