Message Boards
How to use JournalConverterUtil in DXP/Liferay7?
Imanol Xabier Sorribas Diez, modified 4 Years ago.
How to use JournalConverterUtil in DXP/Liferay7?
New Member Posts: 7 Join Date: 7/25/17 Recent Posts
Hello!
How can i read the content of a journal { JournalConverterUtil.getDDMFields(DDMStructure ddmStructure, String content) } or how is the alternative way to do this in DXP/Liferay7?
Thank you guys!
How can i read the content of a journal { JournalConverterUtil.getDDMFields(DDMStructure ddmStructure, String content) } or how is the alternative way to do this in DXP/Liferay7?
Thank you guys!
Mohammed Yasin, modified 4 Years ago.
RE: How to use JournalConverterUtil in DXP/Liferay7?
Liferay Master Posts: 591 Join Date: 8/8/14 Recent Posts
Hi,
You can use following api for fetching journal content
JournalArticleDisplay journalArticleDisplay = JournalArticleLocalServiceUtil.getArticleDisplay(groupId, articleId, version, ddmTemplateKey, viewMode, languageId, themeDisplay);
journalArticleDisplay.getContent()
You can use following api for fetching journal content
JournalArticleDisplay journalArticleDisplay = JournalArticleLocalServiceUtil.getArticleDisplay(groupId, articleId, version, ddmTemplateKey, viewMode, languageId, themeDisplay);
journalArticleDisplay.getContent()