How to set the default filter option on a Scripto Project

Hello - I am working on a Scripto Project using the Papers Theme. I need to have the list of items on the public Scripto project page show the items that have not yet been transcribed at the top of the list by default. How is the best way to go about accomplishing that? Thanks so much for your help in advance.

If you want to show “new” items first by default, you’ll need to make a small modification to the code: open /Scripto/src/Controller/PublicApp/ItemController.php and in browseAction() change this:

$this->setBrowseDefaults(null);

To this:

$this->setBrowseDefaults('edited', 'asc');

This will make all non-edited (i.e. new) items jump to the top of the list.

This worked perfectly! Thanks again.

This topic was automatically closed 250 days after the last reply. New replies are no longer allowed.