Author Topic: OFA - different pages, different sortings  (Read 92 times)

Offline dbs

  • Betatester
  • **
  • Posts: 8075
  • Gender: Male
  • tioz4ever
    • WebsiteBaker - jQuery-Plugins - Module - Droplets - Tests
OFA - different pages, different sortings
« 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

Offline astricia

  • Posts: 709
  • Gender: Female
    • netSchmiede24
Re: OFA - different pages, different sortings
« Reply #1 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

Offline dbs

  • Betatester
  • **
  • Posts: 8075
  • Gender: Male
  • tioz4ever
    • WebsiteBaker - jQuery-Plugins - Module - Droplets - Tests
Re: OFA - different pages, different sortings
« Reply #2 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.