フォーラム

ホーム » Liferay Portal » English » 2. Using Liferay » General

構造的に表示 平面上に表示 ツリー上に表示
スレッド [ 前へ | 次へ ]
toggle
Vaneet Sharma
Redirection to a user profile page.
2008/12/09 2:29
答え

Vaneet Sharma

ランク: Regular Member

投稿: 195

参加年月日: 2008/07/25

最近の投稿

Hi,

How can we redirect to a user profile page whenver a user link is clicked on a Message Board / Blog .

Currently it is redirected to the user My Community public page .

Thanks
Jerry Niu
RE: Redirection to a user profile page.
2008/12/09 14:51
答え

Jerry Niu

LIFERAY STAFF

ランク: Expert

投稿: 451

参加年月日: 2006/06/21

最近の投稿

I think the two pages you refer to is the same.

But, if they not, you need to modify the link to goto where you want.

if you want a programmatic way, look into the "defaultlandingpage" in the Portal Admin guide.
Vaneet Sharma
RE: Redirection to a user profile page.
2008/12/12 3:54
答え

Vaneet Sharma

ランク: Regular Member

投稿: 195

参加年月日: 2008/07/25

最近の投稿

For changing the URL i need to edit the param (user) of <iferay-ui:user-display> tag.

But can anbody tell me how can i get the profile page URL for every user
Vaneet Sharma
RE: Redirection to a user profile page.
2008/12/26 7:47
答え

Vaneet Sharma

ランク: Regular Member

投稿: 195

参加年月日: 2008/07/25

最近の投稿

Any help !
The Meurwinn Concept Concept
RE: Redirection to a user profile page.
2008/12/29 5:02
答え

The Meurwinn Concept Concept

ランク: Expert

投稿: 262

参加年月日: 2006/04/09

最近の投稿

Jerry Niu:
I think the two pages you refer to is the same.

But, if they not, you need to modify the link to goto where you want.

if you want a programmatic way, look into the "defaultlandingpage" in the Portal Admin guide.


Yes, you can implement your redirection with the "user id"
Vaneet Sharma
RE: Redirection to a user profile page.
2008/12/29 22:48
答え

Vaneet Sharma

ランク: Regular Member

投稿: 195

参加年月日: 2008/07/25

最近の投稿

Any example or code snippet for this.
The Meurwinn Concept Concept
RE: Redirection to a user profile page.
2008/12/30 0:58
答え

The Meurwinn Concept Concept

ランク: Expert

投稿: 262

参加年月日: 2006/04/09

最近の投稿

All you need is in "http://www.liferay.com/web/guest/community/wiki/-/wiki/Main/Customizing+the+default+page+after+login"
Vaneet Sharma
RE: Redirection to a user profile page.
2008/12/30 4:57
答え

Vaneet Sharma

ランク: Regular Member

投稿: 195

参加年月日: 2008/07/25

最近の投稿

The Meurwinn Concept:
All you need is in "http://www.liferay.com/web/guest/community/wiki/-/wiki/Main/Customizing+the+default+page+after+login"



Guys , let me reiterate my question :

While viewing a message thread or a blog , if the user name (just beneath the photo) is clicked , then it should open the profile page of the user.

For achieving this where should i make the changes ?
Kowbathullah Gnaniyar
RE: Redirection to a user profile page.
2008/12/30 5:04
答え

Kowbathullah Gnaniyar

ランク: Liferay Master

投稿: 608

参加年月日: 2007/12/19

最近の投稿

Hi Vaneeth,

you can call this method:


themeDisplay.getURLMyAccount();


( Note: import proper class and object for ThemeDisplay)

HTH


-Gnaniyar Zubair
Vaneet Sharma
RE: Redirection to a user profile page.
2008/12/30 6:00
答え

Vaneet Sharma

ランク: Regular Member

投稿: 195

参加年月日: 2008/07/25

最近の投稿

Thanks Zubair !

I made the changes in Start.jsp and it worked .
Now i have to make the opened My Account page of other users non editable .
Any thoughts on that
The Meurwinn Concept Concept
RE: Redirection to a user profile page.
2008/12/30 7:39
答え

The Meurwinn Concept Concept

ランク: Expert

投稿: 262

参加年月日: 2006/04/09

最近の投稿

Sorry, it was not for this thread...
The Meurwinn Concept:
All you need is in "http://www.liferay.com/web/guest/community/wiki/-/wiki/Main/Customizing+the+default+page+after+login"
Vaneet Sharma
RE: Redirection to a user profile page.
2009/01/02 4:10
答え

Vaneet Sharma

ランク: Regular Member

投稿: 195

参加年月日: 2008/07/25

最近の投稿

Hi Zubair,

I am able to trap the logged in user MyAccount details using the themeDisplay.getURLMyAccount() .

But can we trap the My Account details of all the users who have posted in a blog ./ message thread.

Thanks
Sandro Rizzuto
RE: Redirection to a user profile page.
2013/03/14 9:07
答え

Sandro Rizzuto

ランク: New Member

投稿: 2

参加年月日: 2012/11/13

最近の投稿

Solved!

In view_entry_content.jsp add:

User userDisplay = UserLocalServiceUtil.getUserById(entry.getUserId()); (at line 25)

<a href="<%= userDisplay.getDisplayURL(themeDisplay) %>"><%= HtmlUtil.escape(PortalUtil.getUserName(entry.getUserId(), entry.getUserName())) %></a> (at line 192)

I hope it will be helpful!
Ashok BS
RE: Redirection to a user profile page.
2013/09/18 6:12
答え

Ashok BS

ランク: Junior Member

投稿: 30

参加年月日: 2013/08/26

最近の投稿

Hi,

Can anyone guide or help me with this? My scenario is , iam populating list of users in Employee search portlet (i.e. custom portlet) and displaying those records in the same portlet with fields such as: Employee ID, First Name, Last Name & location using liferay provided Search-container.

Now i want to give a hyperlink on Employee ID where, it has to navigate to the particular users "Manage Account URL" . I know we can use themeDisplay.getURLMyAccount() which will navigate to the logged in user's account. But i need to navigate to search listed users respective account URL when i click on the employee id? Please this is very much urgent. Please help.