WebsiteBaker Community Forum

WebsiteBaker Support (2.12.x) => Modules => Topic started by: dbs on September 22, 2019, 04:38:26 PM

Title: OFA - different pages, different sortings
Post by: dbs on September 22, 2019, 04:38:26 PM
I use the module on different pages. You can move items from one page to the other. However, I would need different sorts on these pages (backend and frontend the same).

At the moment you can only specify the order (descending, ascending) of the position for all pages via config.php.
In modify.php and view_overview.php you could sort by something else instead of position. But again only the same for all.

A selection in the page settings would be helpful.
Has anyone done this before?

Translated with www.DeepL.com/Translator
Title: Re: OFA - different pages, different sortings
Post by: astricia on September 24, 2019, 09:12:39 AM
In this case I usually have the OFA module itself on a hidden page and use the anyitems or topitems snippets to sort and display them anywhere on the frontend...

Hope that helps!
Astrid
Title: Re: OFA - different pages, different sortings
Post by: dbs on September 24, 2019, 11:26:18 AM
Right, that would be an option. Thanks for the input.

But here you need for every page a own or renamed ofa_anyitems, because in the include.php is the sort order (switch).

I have played with the settings in OFA and add a new field for sorting. This is the rule only for that section. I think this is best way.