-
AuthorPosts
-
Mr.Cat Moderator
Mr.Cat
- Join date:
- December 2016
- Posts:
- 270
- Downloads:
- 24
- Uploads:
- 69
- Thanks:
- 58
- Thanked:
- 53 times in 50 posts
October 27, 2017 at 2:52 am #1070407Reserse order is already included when you choose alphabetical order. You can see it on our demo
Regards
Wisdom is not a product of schooling but of the lifelong attempt to acquire it.
October 31, 2017 at 9:33 pm #1071434I need this function in the component listing, not in the search module.
Mr.Cat ModeratorMr.Cat
- Join date:
- December 2016
- Posts:
- 270
- Downloads:
- 24
- Uploads:
- 69
- Thanks:
- 58
- Thanked:
- 53 times in 50 posts
November 1, 2017 at 3:02 am #1071487Got it. You can do this tweak to get reverse order.
Open file /components/com_jak2filter/models/itemlist.php , go to line number 59 and replace the code of block next to it by this one
if ($jaK2FilterParams->get('catOrdering')) { $catOrdering = $jaK2FilterParams->get('catOrdering'); $substr = substr($catOrdering, 0, 1); if ($substr == 'r') { $str = substr($catOrdering, 1); $order_fields[$str] = $catOrdering; } else { $order_fields[$catOrdering] = $catOrdering; } }
Then open file /modules/mod_jak2filter/helper.php, go to line 1537 , remove the code comment.
"Title – reverse alphabetical" will appear as an option on component config. Check the screenshot below for more detail.
Regards
- November 10, 2017 at 6:58 pm #1073657
Hello, I am immensely grateful for your help, I was able to do what you reported, but it did not work for what I need. See the attached image so you can understand better.
Thank you very much for your attention.
Mr.Cat ModeratorMr.Cat
- Join date:
- December 2016
- Posts:
- 270
- Downloads:
- 24
- Uploads:
- 69
- Thanks:
- 58
- Thanked:
- 53 times in 50 posts
November 13, 2017 at 3:06 am #1073851My bad, you can open file /modules/mod_jak2filter/helper.php, go to line 1568, remove the code comment. The reverse option will show 🙂
See my attachment below
- This reply was modified 7 years ago by Saguaros.
AuthorPostsViewing 6 posts - 1 through 6 (of 6 total)This topic contains 5 replies, has 2 voices, and was last updated by Mr.Cat 7 years ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Jump to forum
Order List By Extra Field
Viewing 6 posts - 1 through 6 (of 6 total)