Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: Create journal article programmatically
Hi,
please can you post an example to craete a JournalArticle (with custom DDMtemplate) on ifeary 7?
Regards
Fabio
Hi,
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>
Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™