掲示板
Get Layout Object on private sites of user belongs to UserGroup
8年前 に Morad Ahmad によって更新されました。
Get Layout Object on private sites of user belongs to UserGroup
Junior Member 投稿: 71 参加年月日: 10/06/16 最新の投稿
In order to create a link to a private site of a user I must get the layout object of the site. The user belongs to a UserGroup.
For building a link as String I use :
StringBundler sb = new StringBundler();
String portalURL = PortalUtil.getPortalURL(themeDisplay);
sb.append(portalURL);
sb.append("/user/" + user.getScreenName());
sb.append("/~/" + userGroup.getUserGroupId() + "/" + friendlyURL);
String dashboardPath = sb.toString();
return dashboardPath;
which works fine. But how can I get the corresponded Layout-Object for this url??
Thanks,
Morad.
For building a link as String I use :
StringBundler sb = new StringBundler();
String portalURL = PortalUtil.getPortalURL(themeDisplay);
sb.append(portalURL);
sb.append("/user/" + user.getScreenName());
sb.append("/~/" + userGroup.getUserGroupId() + "/" + friendlyURL);
String dashboardPath = sb.toString();
return dashboardPath;
which works fine. But how can I get the corresponded Layout-Object for this url??
Thanks,
Morad.
8年前 に Julien Mourad によって更新されました。
RE: Get Layout Object on private sites of user belongs to UserGroup
Junior Member 投稿: 78 参加年月日: 15/01/22 最新の投稿
Getting layout by friendly URL, https://www.liferay.com/community/forums/-/message_boards/message/10531595
8年前 に Morad Ahmad によって更新されました。
RE: Get Layout Object on private sites of user belongs to UserGroup
Junior Member 投稿: 71 参加年月日: 10/06/16 最新の投稿
yes, but what I need is a layout for a user belongs to a UserGroup.
LayoutLocalServiceUtil.getFriendlyURLLayout(user.getGroupId(), true, "/inbux");
doesn't return the layout for "/inbox" of the user, although there is a page with this URL on users private sites.
Thats because user sites derived from the UserGroup the user belongs to!
Thanks,
Morad.
LayoutLocalServiceUtil.getFriendlyURLLayout(user.getGroupId(), true, "/inbux");
doesn't return the layout for "/inbox" of the user, although there is a page with this URL on users private sites.
Thats because user sites derived from the UserGroup the user belongs to!
Thanks,
Morad.