掲示板

Publishing Journal Article Programattically

9年前 に J Tojal によって更新されました。

Publishing Journal Article Programattically

New Member 投稿: 8 参加年月日: 14/06/16 最新の投稿
Hi, I'me having a big problem publishing journal articles and showing them on asset publisher.

The article only appears after creating a second version. (??)

Publish Method using JournalArticleLocalServiceUtil:
1- if article existe -> create a new version, setStatus(0) (workflow), addJournalArticle
2- if not -> addArticle, setStatus(0), updateJournalArticle

Here's my code:
https://gist.github.com/anonymous/b8511ffa7d61d168c944

Any help, comment or sugestion would be much appreciated.

thanks