Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Luca Lupo
Get journalArticle display page
October 15, 2012 3:34 AM
Answer

Luca Lupo

Rank: Regular Member

Posts: 106

Join Date: October 1, 2012

Recent Posts

Is there a possibility to retrieve the journalArticle display page? I mean the URL.

Thanks

Luca
Bart Simpson
RE: Get journalArticle display page
October 12, 2012 3:22 AM
Answer

Bart Simpson

Rank: Liferay Master

Posts: 523

Join Date: August 29, 2011

Recent Posts

Are you referring to the default Display page of that is selected whilie creating the article?
Or you want to construct the url of any article to open on a specific page?

Both have different solution, please provide more information.
Luca Lupo
RE: Get journalArticle display page
October 12, 2012 3:33 AM
Answer

Luca Lupo

Rank: Regular Member

Posts: 106

Join Date: October 1, 2012

Recent Posts

I mean the URL...such as this one

portlet title: 121010_Italia digitale a due marce
URL: http://IP:8880/web/portale-confcommercio/-/121010_italia-digitale-a-due-marce

I know that I can change blank spaces with "-"...but in case there are strange characters (&?!,.) I have to change everything. I want to be sure to format the URL fine.
Bart Simpson
RE: Get journalArticle display page
October 12, 2012 4:21 AM
Answer

Bart Simpson

Rank: Liferay Master

Posts: 523

Join Date: August 29, 2011

Recent Posts

I am really confused, you asked you have to get the url?
You mean you want to know how this:
1 121010_italia-digitale-a-due-marce
changed to
1121010_italia-digitale-a-due-marce

This is done by Liferay using :
1FriendlyURLNormalizerUtil

And if you want to retrieve it from
1 journalArticle.getUrlTitle()


Please clarify some more in case you are looking for something different.
Luca Lupo
RE: Get journalArticle display page
October 12, 2012 5:22 AM
Answer

Luca Lupo

Rank: Regular Member

Posts: 106

Join Date: October 1, 2012

Recent Posts

Thanks Bart....perfectly working emoticon (as always when u give me help)
Bart Simpson
RE: Get journalArticle display page
October 12, 2012 6:17 AM
Answer

Bart Simpson

Rank: Liferay Master

Posts: 523

Join Date: August 29, 2011

Recent Posts

Your welcome emoticon, could you mark my post as answer, it will help others.