-
AuthorPosts
-
businesstraveller Friend
businesstraveller
- Join date:
- September 2009
- Posts:
- 60
- Downloads:
- 21
- Uploads:
- 2
- Thanked:
- 4 times in 1 posts
September 29, 2009 at 9:19 pm #319056So what is the right way to order by categories? It should have been published in the version 1.3?
cgc0202 Friendcgc0202
- Join date:
- August 2007
- Posts:
- 2244
- Downloads:
- 0
- Uploads:
- 3
- Thanks:
- 206
- Thanked:
- 262 times in 1 posts
September 30, 2009 at 7:56 am #319102<em>@scotty 146843 wrote:</em><blockquote>doesn’t work
needs a ; at the end but query is wrong anyway</blockquote>
Scotty,
So it does not work? What exactly does the “s” in “order by s.ordering” refer to?
I do not know the correct scripting, if the above does not work, but the key must be the same script that allows manual ordering via the BackEnd of features, like the articles in the JA NewsFrontpage, or other “order” revisions done in rearranging modules, components of the Magazine menu, etc.
I hope someone provides a solution to this soon. I do not want to dletete old and “create” new categories to provide a run-around this problem.
Cornelio
scotty Friendscotty
- Join date:
- March 2008
- Posts:
- 2339
- Downloads:
- 0
- Uploads:
- 13
- Thanks:
- 76
- Thanked:
- 827 times in 595 posts
September 30, 2009 at 8:39 am #319111Is this not working in 1.3 either? It was supposed to be fixed in 1.3!
Anonymous ModeratorJA Developer
- Join date:
- September 2014
- Posts:
- 9914
- Downloads:
- 207
- Uploads:
- 152
- Thanks:
- 1789
- Thanked:
- 2008 times in 1700 posts
scotty Friendscotty
- Join date:
- March 2008
- Posts:
- 2339
- Downloads:
- 0
- Uploads:
- 13
- Thanks:
- 76
- Thanked:
- 827 times in 595 posts
cgc0202 Friendcgc0202
- Join date:
- August 2007
- Posts:
- 2244
- Downloads:
- 0
- Uploads:
- 3
- Thanks:
- 206
- Thanked:
- 262 times in 1 posts
September 30, 2009 at 4:18 pm #319183Thanks very much JA Developer and Scotty,
<em>@JA Developer 146951 wrote:</em><blockquote>Hi all
Please change:
$query .= "order by s.ordering"
to:
$query .= " order by s.ordering"
</blockquote><em>@scotty 146949 wrote:</em><blockquote>Is this not working in 1.3 either? It was supposed to be fixed in 1.3!</blockquote>
I just got a chance to try it in one site myself then confirmed it in another Demo, and the revised script does work, with the modification suggested by Scotty to the original revision suggested by JA Developer, Here’s the revised script as suggested above:
$query = "SELECT `id`, `title`, `description`, CASE WHEN CHAR_LENGTH(`alias`) THEN CONCAT_WS(":", `id`, `alias`) ELSE `id` END as `slug` FROM `#__categories` s WHERE published = 1 and section=" . ( int ) $sid . $where;$query .= " order by s.ordering";
The script in red is the added script. Amazing also how the space made a difference???
Please consider the “ordering” issue as solved. Thanks again.
Cornelio
cgc0202 Friendcgc0202
- Join date:
- August 2007
- Posts:
- 2244
- Downloads:
- 0
- Uploads:
- 3
- Thanks:
- 206
- Thanked:
- 262 times in 1 posts
September 30, 2009 at 4:52 pm #319184The additional information below may be useful to Teline III users who, like myself, may not be too well-versed with scripting or just the current Teline III.
Using the revised script, it appears that:
- the ordering of the categories that appear in the FrontEnd depends on the way the categories are ordered manually in the Categories Menu (BackEnd) and not in the Magazine menu. If I am not mistaken, in Teline II, the ordering of the categories in the Magazine menu was what was followed (I have to confirm this when I get a chance).
- the actual (Title) name of the Categories that appear in the FrontEnd depends also on how they are named in the Category Manager (BackEnd) and not in the Magazine menu. This is the case also in Teline II.
Verification of the above observations by others would be appreciated.
The second observation is very critical. Just like the Categories, in Teline II, the “(Title) Name” of the Category as it appeared in the Category Menu (BackEnd) determines what observed in the FrontEnd JA News2.
“(Title) Name” of the Section in the Section Page layout
This should be analogous case also for the “(Title) Name” of the Section, except for one issue — the “(Title) Name” of the Section in the “Section Page”.
In Teline III (all versions up to v1.3 so far), even if the “(Title) Name” of the Section was changed in the Section Manager and the Magazine menu, the “(Title) Name” of the Section is not revised in the “Section Page” layout. This bug and other observations are presented in separate thread:
Bug: Revised Section Name is Not Correct in Section Page Layout
http://www.joomlart.com/forums/topic/bug-revised-section-name-is-not-correct-in-section-page-layout/I would appreciate any help related to the above issue regarding the “(Title) Name” of the Section in the Section Page layout”.
Thanks in advance.
Cornelio
1 user says Thank You to cgc0202 for this useful post
Arvind Chauhan ModeratorArvind Chauhan
- Join date:
- September 2014
- Posts:
- 3835
- Downloads:
- 74
- Uploads:
- 92
- Thanks:
- 1240
- Thanked:
- 1334 times in 848 posts
scotty Friendscotty
- Join date:
- March 2008
- Posts:
- 2339
- Downloads:
- 0
- Uploads:
- 13
- Thanks:
- 76
- Thanked:
- 827 times in 595 posts
September 30, 2009 at 7:13 pm #319193cgc0202;147045 Using the revised script, it appears that:
- the ordering of the categories that appear in the FrontEnd depends on the way the categories are ordered manually in the Categories Menu (BackEnd) and not in the Magazine menu. If I am not mistaken, in Teline II, the ordering of the categories in the Magazine menu was what was followed (I have to confirm this when I get a chance).
- the actual (Title) name of the Categories that appear in the FrontEnd depends also on how they are named in the Category Manager (BackEnd) and not in the Magazine menu. This is the case also in Teline II.
..and this is exactly how it should work. The menu items are just links, that’s all. JA News calls actual categories, not menu items.
-
AuthorPosts
This topic contains 25 replies, has 10 voices, and was last updated by ergohost 15 years, 1 month ago.
We moved to new unified forum. Please post all new support queries in our New Forum