help to better help you:

Please: add always Joomla / JEM version and details to your posts, so we can try to reproduce your issue!

Change sort direction in view=category

Change sort direction in view=category

5 years 6 months ago
#26191
hi,

I don't want to have the latest events at the end, but at the top / at the beginning, in
com_jem&view=category. Where can I change a search, to insert an "ORDER By ... DESC"?
I can't find anything at the moment - e.g. in the default_events_table.php or in other ???

I have to show all of a category, because only all are to be found by J!'s com_search, but not archived once.
Otherwise I might only show the current ones.

best, jose

Please Log in or Create an account to join the conversation.

Re: Change sort direction in view=category

5 years 6 months ago
#26195
it must be in the /models/category.php
The following user(s) said Thank You: jose45

Please Log in or Create an account to join the conversation.

Re: Change sort direction in view=category

5 years 6 months ago
#26196
:-) thank you!

from path
...&view=category&id=2:events2&Itemid=48
file
components/com_jem/models/category.php
in
protected function populateState($ordering = null, $direction = null)
line about 152 changing ASC
$filter_order_DirDefault = 'ASC';
to DESC

its possible to place therefor an override?
e.g.
templates/name/code/com_jem/models/category.php
doesn't work


jose

Please Log in or Create an account to join the conversation.

Re: Change sort direction in view=category

5 years 5 months ago - 5 years 5 months ago
#26201
Pretty sure models override will not work in J!3.x, this is version 4 feature. Your option will be to modify your local JEM version files (and remember the mod if upgrading JEM) or use one of the override plugins.
Last edit: 5 years 5 months ago by jojo12. Reason: models not modules

Please Log in or Create an account to join the conversation.

Re: Change sort direction in view=category

5 years 5 months ago
#26215
because only all are to be found by J!'s com_search, but not archived
Sounds like a JEM search plugin functionality can be improved by optionally including archived events in search results?

Please Log in or Create an account to join the conversation.

Time to create page: 0.609 seconds