Tribune

Home » Liferay Portal » English » 2. Using Liferay » General

Vista Combinata Vista Piatta Vista ad Albero
Discussioni [ Precedente | Successivo ]
toggle
Ken Thompson
Category Navigation Portlet Does not Expand sub-categories
8 maggio 2013 5.19
Risposta

Ken Thompson

Punteggio: New Member

Messaggi: 6

Data di Iscrizione: 19 marzo 2013

Messaggi recenti

I am using categories to drive several content delivery portlets from the category navigation portlet. Here is an sample of of my vocabulary:

Vocabulary:

Information Technology

Categories:

Programs
=> Change Management
=> Enterprise Architecture
=> Application Portfolio Management
=> Technology Standards
=> Information Security
=> IT Finance
=> Safety
Projects
Systems

The category navigation portlet filters based on the vocabulary fine, but it will not expand the categories and sub-categories below the vocabulary. It does pass messages properly to the content display portlets. There is a widget next to the categories that have sub-categories defined (Programs in my sample), but it does not expand the list to reveal the sub-categories. This behavior is seen under Firefox release 20.0.1. IE 10.0.4 has a completely different presentation that is also flawed, but in different ways, so I am ignoring it for now.

We are using:

Liferay Portal Community Edition 6.1.1 CE GA2
Paton / Build 6101 / July 31, 2012 .

Does anyone have a suggestion for making the category and sub-category links expand the tree properly?
Ken Thompson
RE: Category Navigation Portlet Does not Expand sub-categories
8 maggio 2013 8.14
Risposta

Ken Thompson

Punteggio: New Member

Messaggi: 6

Data di Iscrizione: 19 marzo 2013

Messaggi recenti

I found this problem as a bug on the JIRA site that is marked as fixed. I am investigating now to see why I still get the behavior.
austen xia
RE: Category Navigation Portlet Does not Expand sub-categories
11 luglio 2013 20.56
Risposta

austen xia

Punteggio: New Member

Messaggi: 1

Data di Iscrizione: 24 giugno 2013

Messaggi recenti

I am getting the same issue here, any soulutions you found? Please help! great appreciated.
Antoine Comble
RE: Category Navigation Portlet Does not Expand sub-categories
15 luglio 2013 6.43
Risposta

Antoine Comble

Punteggio: Regular Member

Messaggi: 203

Data di Iscrizione: 7 settembre 2012

Messaggi recenti

Hi,

As I described it in this post https://www.liferay.com/community/forums/-/message_boards/message/25657349, you can do it :
Hello,

You must to override categories navigation portlet.
The portlet is in tomcat/webapps/ROOT/html/taglib/ui/asset_categories_navigation and the file to override is page.jsp.
In method, _buildCategoriesNavigation, after this code line
1
2List<AssetCategory> categoriesChildren = AssetCategoryServiceUtil.getChildCategories(category.getCategoryId(), QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);


replace the line :
1
2sb.append("<li><span>");


by
1
2sb.append("<li class=\"aui-tree-node\"><span>");


the concerned code line in 126.

Hope this help you,

Antoine