Sort the tag cloud alphabetically
Permalink
Hi, I am using the tag cloud template in the search block and I want to know how I make the tags appear in alphabetical order as opposed to random?
I think you need to set Alphabetical as the order for the Tag attribute through the Dashboard -> Pages & Themes -> Attributes
Hi hutman, Thank you for your reply.
That doesn't seem to have worked, they are still displaying in a random order?
I am using a tag cloud template in the search block, not the actual tags block, could that be the reason why?
That doesn't seem to have worked, they are still displaying in a random order?
I am using a tag cloud template in the search block, not the actual tags block, could that be the reason why?
If you look in the /concrete/blocks/search/templates/tag_cloud/view.php you will see there is a line
I think if you comment this out it will solve your problem.
If you upgrade this change will be wiped out, unless you move that template out into the application directory.
shuffle($tags);
I think if you comment this out it will solve your problem.
If you upgrade this change will be wiped out, unless you move that template out into the application directory.