Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
Jaynil A Bagdai
Change display category name programatically
October 8, 2012 11:41 PM
Answer

Jaynil A Bagdai

Rank: Regular Member

Posts: 120

Join Date: March 3, 2012

Recent Posts

Hi All,
In Liferay we can provide display category like below in xml file.

 1<display>
 2    <category name="category.admin">
 3        <portlet id="9" />
 4        <portlet id="40" />
 5        <portlet id="79" />
 6        <portlet id="80" />
 7    </category>
 8    <category name="category.cms">
 9        <category name="category.alfresco">
10            <portlet id="91" />
11        </category>
12    </category>
13...
14<display>


But what if i want to provide category on some conditions. That means i want to provide category programatically.

How can i do that?