Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Michael Illgner
portlet custom category using SDK ?
October 12, 2009 6:18 AM
Answer

Michael Illgner

Rank: Junior Member

Posts: 33

Join Date: June 30, 2009

Recent Posts

I just created a new portlet using the SDK create.sh script and I want to define a new portlet category in liferay-display.xml,

<category name="category.mycompany">

where do I have to put the corresponding properties file and how do I have to name it ?

Language.properties / Language_Exp.properties does not seem to work with the SDK ?

regards
Michael
Thomas Berg
RE: portlet custom category using SDK ?
October 13, 2009 7:02 AM
Answer

Thomas Berg

Rank: Regular Member

Posts: 134

Join Date: September 7, 2009

Recent Posts

Hi Michael,

If you just want to add a new category, skip the prefix category and just enter the name of your category in the liferay-display.xml that belongs to your portlet i.e., not ROOT/WEB-INF/liferay-display.xml like so:

1<display>
2    <category name="mycompany">
3        <portlet id="myportletid"></portlet>
4    </category>
5</display>

HTH
/ Thomas