Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: Manually setting the order of Categories within Category Navigation wid
Hello,
I am using Liferay 7.3 GA2.
I would like to manually set the order of a Vocabularies Categories within Category Navigation widget.
I can manually sort the vocabularies themselves within the configuration of the widget, but the listed categories will only display in alphabetical order.
If this cannot be done, can anyone think of a work around?
Thanks.
Best wishes, Nick.
I am using Liferay 7.3 GA2.
I would like to manually set the order of a Vocabularies Categories within Category Navigation widget.
I can manually sort the vocabularies themselves within the configuration of the widget, but the listed categories will only display in alphabetical order.
If this cannot be done, can anyone think of a work around?
Thanks.
Best wishes, Nick.
Krzysztof Gołębiowski, modified 5 Years ago.
Liferay Master
Posts: 549
Join Date: 6/25/11
Recent Posts
Hi Nick,
I used to do these kinds of things in ADT in the past. I checked 7.3 GA4 and it seems there are no new configuration options for this portlet, so I think the only way to go is still custom sorting code in the freemarker ADT.
Best,
KG
I used to do these kinds of things in ADT in the past. I checked 7.3 GA4 and it seems there are no new configuration options for this portlet, so I think the only way to go is still custom sorting code in the freemarker ADT.
Best,
KG
Thanks, KG. As long as I can do it, then I’m relieved. You wouldn’t have an example of your ADT code would you?Don’t worry if you haven’t Thanks again.
Best wishes, Nick.
Best wishes, Nick.
The ADT will only allow me to pull in the data using the following script ...
${assetCategoriesNavigationDisplayContext}
I need to order the categories that are pulled into the page in a set (manual) order.
I'm not certain how I would do that in the ADT without being able to see the individual categories.
Sorry, probably obvious, but I just cannot figure it out. :-(
BW, Nick.
${assetCategoriesNavigationDisplayContext}
I need to order the categories that are pulled into the page in a set (manual) order.
I'm not certain how I would do that in the ADT without being able to see the individual categories.
Sorry, probably obvious, but I just cannot figure it out. :-(
BW, Nick.
Krzysztof Gołębiowski, modified 5 Years ago.
Liferay Master
Posts: 549
Join Date: 6/25/11
Recent Posts
The default Liferay editor doesn't give you many options but there are a lot of ADT examples in Global scope. Check out the "Multi Column Layout" for Category Navigation Widget, which properly enumerates all the Vocabularies and Categories. That should allow you to do the sorting using Freemarker sequences.
KG
KG
Thanks, KG.That looks to give me all the parts that I need, I will give that a try.
Have fun. Best wishes, Nick.
Have fun. Best wishes, Nick.
Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™