留言板
Getting Layout Full URL
Hi All,
I am working on the following requirement:
Email Notification for a set of users when a Blog is created in a particular community.
I am facing a challenge at the point of retrieving the complete Blog URL for inclusion as part of the email Body.
I found the following standard code in blog Implementation for getting the complete URL for a particulat Blog:
String layoutFullURL = PortalUtil.getLayoutFullURL(
serviceContext.getScopeGroupId(), PortletKeys.BLOGS);
String entryURL =
layoutFullURL + Portal.FRIENDLY_URL_SEPARATOR + "blogs" +
StringPool.SLASH + entry.getEntryId();
Since I do not have access to PortalUtil, I currently do not know how to get the complete blog URL.
Please kindly share your knowledge on this.
Thanks and Regards,
Mano
I am working on the following requirement:
Email Notification for a set of users when a Blog is created in a particular community.
I am facing a challenge at the point of retrieving the complete Blog URL for inclusion as part of the email Body.
I found the following standard code in blog Implementation for getting the complete URL for a particulat Blog:
String layoutFullURL = PortalUtil.getLayoutFullURL(
serviceContext.getScopeGroupId(), PortletKeys.BLOGS);
String entryURL =
layoutFullURL + Portal.FRIENDLY_URL_SEPARATOR + "blogs" +
StringPool.SLASH + entry.getEntryId();
Since I do not have access to PortalUtil, I currently do not know how to get the complete blog URL.
Please kindly share your knowledge on this.
Thanks and Regards,
Mano
PortalUtil is in portal-service.jar which is on the global classpath. It should be available to every plugin
MANOVINAYAK AYYAPPAN,修改在12 年前。
RE: Getting Layout Full URL
Regular Member 帖子: 131 加入日期: 11-6-13 最近的帖子
Hi Jelmer,
Thanks a lot for pointing out.
Looks like I have some serious mix up in my lib/ext of tomcat. I need to inspect my Tomcat and rebuild my plugin, as it was failing during build.
Thanks a lot once again !!!
Thanks and Regards,
Mano
Thanks a lot for pointing out.
Looks like I have some serious mix up in my lib/ext of tomcat. I need to inspect my Tomcat and rebuild my plugin, as it was failing during build.
Thanks a lot once again !!!
Thanks and Regards,
Mano