-
AuthorPosts
-
librandi Friend
librandi
- Join date:
- February 2012
- Posts:
- 587
- Downloads:
- 89
- Uploads:
- 163
- Thanks:
- 123
- Thanked:
- 2 times in 2 posts
June 9, 2016 at 11:05 am #939141Hi,
in home 2 position, I’ve a Magazine – Category Listing : style-2 , I can’ t order the categories. I would first boutique hotel and enjoy experience, but they are always lower, can you help me pleaseJune 9, 2016 at 11:26 am #939144Also interested in this solution. Why the categories choose to arrange themselves any how on the page. How can I order the categories.
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
June 13, 2016 at 7:21 am #939972At this moment, it will display categories in order shown in category settings option of module.
I also pass this to the team for further consideration: http://pm.joomlart.com/browse/JATELINEV-349
librandi Friendlibrandi
- Join date:
- February 2012
- Posts:
- 587
- Downloads:
- 89
- Uploads:
- 163
- Thanks:
- 123
- Thanked:
- 2 times in 2 posts
June 13, 2016 at 8:07 am #939987I had tried to change it in various mode but I see always the same like cattura1
-
Saguaros Moderator
Saguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
June 14, 2016 at 2:36 am #940286Please wait for the news from the team on this case.
librandi Friendlibrandi
- Join date:
- February 2012
- Posts:
- 587
- Downloads:
- 89
- Uploads:
- 163
- Thanks:
- 123
- Thanked:
- 2 times in 2 posts
June 24, 2016 at 8:01 am #943620hello, there is some notice about?
tksSaguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
June 27, 2016 at 6:38 am #944459Hi
We’re sorry for this inconvenience as the team is working full time in new Admin template and monthly template. They will check it asap. Please stay tuned.
Mo0nlight ModeratorMo0nlight
- Join date:
- September 2014
- Posts:
- 707
- Downloads:
- 38
- Uploads:
- 107
- Thanked:
- 99 times in 97 posts
July 12, 2016 at 3:47 am #949084Hi.
The order of select box in BO is do not concern with the category article list in FO.
if you want to sort the the result by category list.
You can try this.
edit the file: /templates/ja_teline_v/helper.phpfind this code:
public static function loadCategories($catids) { $categories = array(); foreach ($catids as $catid) { $cat = JTable::getInstance('category'); $cat->load ($catid); if ($cat->published == 1) $categories[] = $cat; } return $categories; }
around line : 479-488
And change to this:
public static function loadCategories($catids) { $categories = array(); $db = JFactory::getDbo(); $query = $db->getQuery(true); $query->select('id'); $query->from('#__categories'); $query->where('id IN ('.implode(',', $catids).')'); $query->order('lft ASC'); $db->setQuery($query); $catids = $db->loadColumn(); foreach ($catids as $catid) { $cat = JTable::getInstance('category'); $cat->load ($catid); if ($cat->published == 1) $categories[] = $cat; } return $categories; }
lft meaning the ordering of category in BO.
You can change "lft" to something like :
title, id, hits, created_time, modified_time
and ASC or DESC.Regards.
1 user says Thank You to Mo0nlight for this useful post
August 1, 2016 at 12:12 pm #955730I have upgraded to 1.0.9 However i still dont see how to order the categories. They reorganize themselves each time i save.
Mo0nlight ModeratorMo0nlight
- Join date:
- September 2014
- Posts:
- 707
- Downloads:
- 38
- Uploads:
- 107
- Thanked:
- 99 times in 97 posts
August 3, 2016 at 11:26 am #956493Seem my point is not understood.
You say here that you have improved JA Teline V 1.0.9 with this update.
I was expecting to see an option in the back end to select the order of categories.
Take a look at orderBackend.png attached to this post. I want to be able to arrange the order in which categories display. Lets say i select the categories in the backend in the order
Category 1,
Category 2,
Category 3,I want Front End to display the sections in that same order.
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
August 11, 2016 at 2:46 am #958876Hi Francis,
My colleague – MoOnlight – suggested you a custom for loadCategories function so that the selected categories will show in order with credentials like: title, id, hits, created_time, modified_time
and ASC or DESC.With the current selected box for multiple categories, it’s hard to order categories. I will also pass to the team again for checking this.
Mr.Cat ModeratorMr.Cat
- Join date:
- December 2016
- Posts:
- 270
- Downloads:
- 24
- Uploads:
- 69
- Thanks:
- 58
- Thanked:
- 53 times in 50 posts
March 23, 2017 at 4:45 am #1021135Hi @francis.kisserh,
I know it’s too late, but here is another way to help you order multiple categories.
First, open file templates/ja_teline_v/acm/news-list/tmpl/style-2.xml
Go to line number 19 and change type="category" to type="text" ( see attachment)
Open file templates/ja_teline_v/helper.php
Go to line number 480 and add this code to top of scope (see attachment)
if (!is_array($catids)) { $catids = explode(',', $catids); }
Then back to the module config, put list category ids separated by comma in the order you want . (see attachment)
Hope it helps
Regards
- March 23, 2017 at 2:59 pm #1021379
i got the error
unexpected '='
when i tried this.please check and let me know
Mr.Cat ModeratorMr.Cat
- Join date:
- December 2016
- Posts:
- 270
- Downloads:
- 24
- Uploads:
- 69
- Thanks:
- 58
- Thanked:
- 53 times in 50 posts
March 24, 2017 at 2:27 am #1021461Hi @francis, Please use this patch. (attachment below)
Extract zip file and override helper.php to /templates/ja_teline_v/
style-2.xml to /templates/ja_teline_v/acm/news-list/tmpl/
Or could you send me the site access information to check deeper?
Thanks.
Wisdom is not a product of schooling but of the lifelong attempt to acquire it.
AuthorPostsThis topic contains 16 replies, has 5 voices, and was last updated by Mr.Cat 7 years, 7 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Jump to forum