Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Rama Patra
How I want to get the Page Url of different scope
December 27, 2012 1:17 AM
Answer

Rama Patra

Rank: New Member

Posts: 2

Join Date: December 27, 2012

Recent Posts

How I want to get the Page Url of different scope ..?

I need url of public page private page and organization page
Debasis Padhi
RE: How I want to get the Page Url of different scope
December 27, 2012 1:53 AM
Answer

Debasis Padhi

Rank: Junior Member

Posts: 53

Join Date: March 23, 2012

Recent Posts

for public page url : http://localhost:8080/web/test/home
String publicPageUrl=themeDisplay.getPathFriendlyURLPublic();
publicPageUrl=publicPageUrl+friend.getGroup().getFriendlyURL();

it will give you up to http://localhost:8080/web/test

for private page url like http://localhost:8080/user/test/home
String privatePageUrl=themeDisplay.getPathFriendlyURLPrivateUser();
privatePageUrl=privatePageUrl+friend.getGroup().getFriendlyURL();

it will give you up to http://localhost:8080/user/test
Rama Patra
RE: How I want to get the Page Url of different scope
January 1, 2013 4:19 AM
Answer

Rama Patra

Rank: New Member

Posts: 2

Join Date: December 27, 2012

Recent Posts

Thanks debasis

It was really very helpful to me