Asset Publisher

test

test

Blogs

Directing web content to a specific "Web Content Display" Portlet

 

Web Content Display

By creating links with the following format you can send content to a particular instance of the Web Content Display portlet (see portal-trunk/portal-impl/src/com/liferay/portlet/journalcontent/journal-content-friendly-url-routes.xml):
 
<pattern>/{p_p_id}/{groupId:\d+}/{articleId:[^/]+}</pattern>
 
An example of a URL is:
 
/innovate/group/guest/new-user-guide/-/journal_content/56_INSTANCE_lxYCJNB98Qeq/10157/39407
 
Where:
  • "/innovate/group/guest/new-user-guide/" tells the portal to go to the "new-user-guide" private page,
  • "/-/" is a separator
  • "journal_content/" indicates to use the ,
  • "56_INSTANCE_lxYCJNB98Qeq is the portlet instance ID (see below to determine this)
  • "/10157/39407" is the group_id followed by the article_id.
The portlet instance ID can be determined by click in the wrench on the portlet you want to direct content to (Options->Look and Feel->Advanced Styling).  Copy the the string specified as the Portlet ID without the initial "#portlet_".  For the web content display it will always begin with 56. 
 
You can determine the group_id by looking at the URLs when hoovering over the options under "Manage" in the header bar.  Look for the number after the parameter "doAsGroupId=".  The group_id is unique for each community within the VLab.
 
The article_id can be determined by looking at the ID column under the "Web Content" page found from the "Manage"->"Community Content" or from the "Control Panel".
 
For more information on the "FriendlyURLMapper", which is what we are using look at http://www.liferay.com/community/wiki/-/wiki/Main/FriendlyURLMapper
 

More Blog Entries

Testing

This is a test.

Advanced Web Content

Within the VLab portal it is possible for an administrator to create advanced web content....

1 Comments

LC
Laura Cutrer 12 Years Ago
Testing.
00
Please sign in to reply.