Write links to WCM content
Linking to WCM content from WCM content
The following examples show how to write links to Web Content Management Content that are to be used with the rendering portlet.Non-ascii characters can not be used in the query string section of URLs. For this reason, it is best not to name IBM Lotus WCM items using non-ascii characters if you plan to use URLs to call WCM items.
To create a link from a piece of WCM content to another piece of WCM content, use the following URL format:
<pathCmpnt type="servlet" />/[LIBRARY]/[SITE]/[SITE_AREA_PATH]/[CONTENT]
[LIBRARY] name of the Web content library. [SITE] name of the site where the content resides. [SITE_AREA_PATH] Path to the site area where the content resides. [CONTENT] Name of the content item.
Link to WCM content from an external portlet or web site
To create a link from an external portlet or web site that displays WCM content, use the following URL format:
http://[HOST]/wps/wcm/connect/[LIBRARY]/[SITE]/[SITE_AREA_PATH]/[CONTENT]
[HOST] Name of the WCM host. wps/wcm WCM context root. [LIBRARY] Name of the Web content library. [SITE] Name of the site where the content resides. [SITE_AREA_PATH] Path to the site area where the content resides. [CONTENT] Name of the content item.
Change WCM content via a Rendering Portlet from an external portlet or web site
To create a link that causes an existing Rendering Portlet to display different WCM Content, use the following URL format:
http://[PORTAL_HOST]/[PORTAL_CONTEXT_ROOT]/[PORTAL_PAGE_URL_MAPPING]/?New_WCM _Context=[ILWWCM _PAGE_URL]
[PORTAL_HOST] Name of the Portal Server host [PORTAL_CONTEXT_ROOT] Portal Server context root. For anonymous sites use /wps/portal, otherwise use /wps/myportal [PORTAL_PAGE_URL_MAPPING] Portal Server URL MAPPING to the portal page that contains the WCM Portlet (URL Mapping's can be setup via the Portal Server Administration). [ILWWCM _PAGE_URL] full URL to the WCM Content.
Change WCM content via a Rendering Portlet from WCM content
To create a link in WCM Content that causes an existing Rendering Portlet to display different WCM Content, use the following URL format:
http://[PORTAL_HOST]/[PORTAL_CONTEXT_ROOT]/[PORTAL_PAGE_URL_MAPPING]/?New_WCM _Context=<pathCmpnttype="noprefixservlet"/>/[LIBRARY]/[SITE]/[SITE_AREA_PATH]/[CONTENT]
[PORTAL_HOST] Name of the Portal Server host [PORTAL_CONTEXT_ROOT] Portal Server context root. For anonymous sites use /wps/portal, otherwise use /wps/myportal [PORTAL_PAGE_URL_MAPPING] Portal Server URL MAPPING to the portal page that contains the WCM Portlet (URL Mapping's can be setup via the Portal Server Administration). [LIBRARY] Name of the Web content library. [SITE] Name of the site where the content resides. [SITE_AREA_PATH] Path to the site area where the content resides. [CONTENT] Name of the content item.
Parent topic
Displaying Web content