Get the url of a journal Article in liferay 7.1

0

I need to get the url of a JournalArticle having its id. Right now I get the JournalArticle object, but I can not build your url.

<#assign journalarticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService")/>
<#assign article = journalarticleLocalService.getArticle(themeDisplay.getScopeGroupId() , recetarelacionada.getData())/>
<#assign id = article.id?number?long >

<#assign artic =journalarticleLocalService.getJournalArticle(id)/>

<#assign pathArticle = artic.getUrlTitle() >

The variable pathArticle must now be equal to the url of the article, but it is not like that. I just received a part of the friendly url

    
asked by Miguel Angel González 30.10.2018 в 17:37
source

0 answers