Fórum

How to get a JournalArticle from an AssetEntry ?

julien blondeau, modificado 14 Anos atrás.

How to get a JournalArticle from an AssetEntry ?

Junior Member Postagens: 44 Data de Entrada: 11/02/10 Postagens Recentes
Hello,
im overriding the asset publisher and i want to display only JournalArticles...

To retrieve a JournalArticle, im using
JournalArticle art = JournalArticleLocalServiceUtil.getArticle(articleId);


But i can't get the articleId from an AssetEntry.
Maybe it's logic because an AssetEntry can be something else than an article...

Is there any other way to get the article? from an AssetEntry or assetEntryQuery...

thx
julien blondeau, modificado 14 Anos atrás.

RE: How to get a JournalArticle from an AssetEntry ?

Junior Member Postagens: 44 Data de Entrada: 11/02/10 Postagens Recentes
Ok I found a way,
use of AssentEntry getClassPK() with JournalArticleLocalServiceUtil.getLatestArticle(classPK)
thumbnail
Wes Kempa, modificado 9 Anos atrás.

RE: How to get a JournalArticle from an AssetEntry ?

New Member Postagens: 24 Data de Entrada: 29/07/08 Postagens Recentes
Worked great! Thanks
thumbnail
Daniele Baggio, modificado 8 Anos atrás.

RE: How to get a JournalArticle from an AssetEntry ?

Expert Postagens: 336 Data de Entrada: 05/12/08 Postagens Recentes
Thankyou, i was looking to exactly this response!