Message Boards
Create journal article programmatically
Fabio Conte, modified 3 Years ago.
Create journal article programmatically
New Member Post: 1 Join Date: 11/24/20 Recent PostsHi,
please can you post an example to craete a JournalArticle (with custom DDMtemplate) on ifeary 7?
Regards
Fabio
Mohammed Yasin, modified 3 Years ago.
RE: Create journal article programmatically
Liferay Master Posts: 591 Join Date: 8/8/14 Recent PostsHi,
You can use JournalArticleLocalService, it provided multiple methods for creating article . You can refer below url
For creating custom DDM Template you can use
DDMTemplateManagerUtil.addTemplate(userId, groupId,
classNameId, classPK, resourceClassNameId, templateKey, nameMap,
descriptionMap, type, mode, language, script, cacheable, smallImage,
smallImageURL, smallImageFile, serviceContext)<br>