Visualização combinada Visão plana Exibição em árvore
Tópicos [ Anterior | Próximo ]
toggle
Vaneet Sharma
Redirection to a user profile page.
9 de Dezembro de 2008 02:29
Resposta

Vaneet Sharma

Ranking: Regular Member

Mensagens: 195

Data de entrada: 25 de Julho de 2008

Mensagens recentes

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.
9 de Dezembro de 2008 14:51
Resposta

Jerry Niu

LIFERAY STAFF

Ranking: Expert

Mensagens: 451

Data de entrada: 21 de Junho de 2006

Mensagens recentes

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.
12 de Dezembro de 2008 03:54
Resposta

Vaneet Sharma

Ranking: Regular Member

Mensagens: 195

Data de entrada: 25 de Julho de 2008

Mensagens recentes

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.
26 de Dezembro de 2008 07:47
Resposta

Vaneet Sharma

Ranking: Regular Member

Mensagens: 195

Data de entrada: 25 de Julho de 2008

Mensagens recentes

Any help !
The Meurwinn Concept Concept
RE: Redirection to a user profile page.
29 de Dezembro de 2008 05:02
Resposta

The Meurwinn Concept Concept

Ranking: Expert

Mensagens: 262

Data de entrada: 9 de Abril de 2006

Mensagens recentes

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.
29 de Dezembro de 2008 22:48
Resposta

Vaneet Sharma

Ranking: Regular Member

Mensagens: 195

Data de entrada: 25 de Julho de 2008

Mensagens recentes

Any example or code snippet for this.
The Meurwinn Concept Concept
RE: Redirection to a user profile page.
30 de Dezembro de 2008 00:58
Resposta

The Meurwinn Concept Concept

Ranking: Expert

Mensagens: 262

Data de entrada: 9 de Abril de 2006

Mensagens recentes

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.
30 de Dezembro de 2008 04:57
Resposta

Vaneet Sharma

Ranking: Regular Member

Mensagens: 195

Data de entrada: 25 de Julho de 2008

Mensagens recentes

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.
30 de Dezembro de 2008 05:04
Resposta

Kowbathullah Gnaniyar

Ranking: Liferay Master

Mensagens: 608

Data de entrada: 19 de Dezembro de 2007

Mensagens recentes

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.
30 de Dezembro de 2008 06:00
Resposta

Vaneet Sharma

Ranking: Regular Member

Mensagens: 195

Data de entrada: 25 de Julho de 2008

Mensagens recentes

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.
30 de Dezembro de 2008 07:39
Resposta

The Meurwinn Concept Concept

Ranking: Expert

Mensagens: 262

Data de entrada: 9 de Abril de 2006

Mensagens recentes

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.
2 de Janeiro de 2009 04:10
Resposta

Vaneet Sharma

Ranking: Regular Member

Mensagens: 195

Data de entrada: 25 de Julho de 2008

Mensagens recentes

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.
14 de Março de 2013 09:07
Resposta

Sandro Rizzuto

Ranking: New Member

Mensagens: 2

Data de entrada: 13 de Novembro de 2012

Mensagens recentes

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.
18 de Setembro de 2013 06:12
Resposta

Ashok BS

Ranking: Junior Member

Mensagens: 30

Data de entrada: 26 de Agosto de 2013

Mensagens recentes

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.