Liferay – adding a Type to the Web Content (former Journal)
Adden of a Web Content Type
You can not do this via the GUI, you have to edit the property files
in WEB-INF\classes\portal-ext.properties: create key
# Article Types to webContent - added jobAnnouncement journal.article.types=announcements,blogs,general,news,press-release,test,YOUR_CONTENT_TYPE
in WEB-INF\classes\content\Language-ext.properties: resolving the language key
YOUR_CONTENT_TYPE=Name of your Content type displayed
How I can get the types by code??
Ya, Me too I wana use the webcontent Type to create a new Validation workflow that use the webcontent type in order to find the validator.
Soo Please how I can get the type by code ??
Sorry, can’t help. It has been some time since i payed with Liferay.
As you know documentation is not that good. The company behind Liferay seams to make money by traning and consulting. When the documentation is lacking there is money to be made.
/K
String[] com.liferay.portlet.journal.model.JournalArticleConstants.TYPES
http://docs.liferay.com/portal/6.0/javadocs/com/liferay/portlet/journal/model/JournalArticleConstants.html#TYPES
I just start to developing in liferay,adding a Type to the Web Content is new and useful for me, getting new and improved my knowledge after reading this.