掲示板
Redirection to a user profile page.
15年前 に Vaneet Sharma によって更新されました。
Redirection to a user profile page.
Regular Member 投稿: 195 参加年月日: 08/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
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
15年前 に Jerry Niu によって更新されました。
RE: Redirection to a user profile page.
Expert 投稿: 451 参加年月日: 06/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.
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.
15年前 に Vaneet Sharma によって更新されました。
RE: Redirection to a user profile page.
Regular Member 投稿: 195 参加年月日: 08/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
But can anbody tell me how can i get the profile page URL for every user
15年前 に Vaneet Sharma によって更新されました。
RE: Redirection to a user profile page.
Regular Member 投稿: 195 参加年月日: 08/07/25 最新の投稿
Any help !
15年前 に The Meurwinn Concept によって更新されました。
RE: Redirection to a user profile page.
Expert 投稿: 261 参加年月日: 06/04/10 最新の投稿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"
15年前 に Vaneet Sharma によって更新されました。
RE: Redirection to a user profile page.
Regular Member 投稿: 195 参加年月日: 08/07/25 最新の投稿
Any example or code snippet for this.
15年前 に The Meurwinn Concept によって更新されました。
RE: Redirection to a user profile page.
Expert 投稿: 261 参加年月日: 06/04/10 最新の投稿
All you need is in "http://www.liferay.com/web/guest/community/wiki/-/wiki/Main/Customizing+the+default+page+after+login"
15年前 に Vaneet Sharma によって更新されました。
RE: Redirection to a user profile page.
Regular Member 投稿: 195 参加年月日: 08/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 ?
15年前 に Gnaniyar Zubair によって更新されました。
RE: Redirection to a user profile page.
Liferay Master 投稿: 722 参加年月日: 07/12/19 最新の投稿
Hi Vaneeth,
you can call this method:
( Note: import proper class and object for ThemeDisplay)
HTH
-Gnaniyar Zubair
you can call this method:
themeDisplay.getURLMyAccount();
( Note: import proper class and object for ThemeDisplay)
HTH
-Gnaniyar Zubair
15年前 に Vaneet Sharma によって更新されました。
RE: Redirection to a user profile page.
Regular Member 投稿: 195 参加年月日: 08/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
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
15年前 に Vaneet Sharma によって更新されました。
RE: Redirection to a user profile page.
Regular Member 投稿: 195 参加年月日: 08/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
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
11年前 に Sandro Rizzuto によって更新されました。
RE: Redirection to a user profile page.
New Member 投稿: 2 参加年月日: 12/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!
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!
10年前 に Ashok BS によって更新されました。
RE: Redirection to a user profile page.
Junior Member 投稿: 30 参加年月日: 13/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.
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.
15年前 に The Meurwinn Concept によって更新されました。
RE: Redirection to a user profile page.
Expert 投稿: 261 参加年月日: 06/04/10 最新の投稿
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"