Jump to content

Make Database Records Sortable


Recommended Posts


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 );}}


Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...