Foros de discusión

Portlet access WCM dataset

Alex Chan, modificado hace 10 años.

Portlet access WCM dataset

New Member Mensajes: 18 Fecha de incorporación: 5/02/13 Mensajes recientes
I'm using Liferay version 611 and mysql.
I try to make use of WCM to create data definition and Dynamic Data List for data input. Instead of using either DDL detail or list template to present data, I like to develop a porltet, jsp with Alloy UI to present the data captured in WCM data definition. The point is that how do I know the data strucutre captured in WCM data defintion via using java sql statement ? Does any existing Lifeay JAVA service API to access data record captured withn WCM.
Tech Box, modificado hace 10 años.

RE: Portlet access WCM dataset

New Member Mensajes: 18 Fecha de incorporación: 5/02/13 Mensajes recientes
Anyone can help on this ??emoticon
thumbnail
Jeffrey Handa, modificado hace 10 años.

RE: Portlet access WCM dataset

Liferay Master Mensajes: 541 Fecha de incorporación: 1/12/08 Mensajes recientes
You should definitely try to access your web content data using LIferay services and not go straight to the database using SQL statements.

Liferay's WCM used to be called Liferay Journal so the API still reflects the older names so in your java code you can use the JournalArticleLocalServiceUtil to get to a JournalArticle.
Tech Box, modificado hace 10 años.

RE: Portlet access WCM dataset

New Member Mensajes: 18 Fecha de incorporación: 5/02/13 Mensajes recientes
Thank, and I tried it and make it work.