Totally Zenned
- Join Date:
- Aug 2007
- Location:
- Gijón, Asturias, Spain
- Posts:
- 2,876
- Plugin Contributions:
- 7
admin function zen_draw_products_pull_down: order by, Admin switch or selectable?
This is used in a lot of admin pages for product selection, for example:
Out of the box this sorts by product name, which is useless for me so I have in the past changed the function order by to products_model.
While modifying a file that uses it, as above, I was thinking to add on-the-page options to change the sort order (using an additional parameter in the function), then thought that probably whatever anyone would want for one page, they would want the same for all, so maybe it would be better (and a lot easier) as an admin switch to control the function (for sorting by name/model/id or whatever else).
Opinions?
On the page selection or admin switch? Or the rest of the world is happy with sort by name?
Steve
github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...