I am looking for a solution to this as well.
The question relates to how tags display on the published article, for example:
http://ift.tt/1jsm6ag ... -in-intaki
Scroll to the bottom of the article, where the tags are displayed:
As the OP mentioned, this is in the same order of the tag's database ID rather than alphabetically by the tag name itself, and there does not appear to be any setting in the administration backend to change this.
I have an override for "/layouts/joomla/content/tags.php" in place already that adds the "Tags:" text and the comma separators shown in my article. What code would I need to change in my override to sort the tag array alphabetically after the IDs have been fetched?
In a non-Joomla environment I would achieve this by doing something like the following (where the important part is "ORDER BY tag ASC" rather than ordering by tag_id):
Thanks!
via Joomla! http://ift.tt/1ziQF47
The question relates to how tags display on the published article, for example:
http://ift.tt/1jsm6ag ... -in-intaki
Scroll to the bottom of the article, where the tags are displayed:
Code:
Tags: ficlet, intaki, calnavy, ilf, ipi, daniel alpena, richard masseri, fireworks, foley aberas jones
As the OP mentioned, this is in the same order of the tag's database ID rather than alphabetically by the tag name itself, and there does not appear to be any setting in the administration backend to change this.
I have an override for "/layouts/joomla/content/tags.php" in place already that adds the "Tags:" text and the comma separators shown in my article. What code would I need to change in my override to sort the tag array alphabetically after the IDs have been fetched?
In a non-Joomla environment I would achieve this by doing something like the following (where the important part is "ORDER BY tag ASC" rather than ordering by tag_id):
Code:
SELECT * FROM log_tags, tags WHERE log_tags.entry_id='$entryID' AND log_tags.tag_id=tags.tag_id ORDER BY tag ASC"
Thanks!
Statistics: Posted by Sakaane — Sat Feb 07, 2015 6:24 pm
via Joomla! http://ift.tt/1ziQF47
No comments:
Post a Comment