Write links to Web Content Management content

 

+

Search Tips   |   Advanced Search

 

Links to content items can be written as URLs.

 

Link to Web Content Management (WCM) content from WCM content

The following examples show how to write links to WCM Content that are to be used with the rendering portlet.

Non-ascii characters

Non-ascii characters can not be used in the query string section of URLs. For this reason, it is best not to name IBM Workplace 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" />/[SITE]/[SITE_AREA_PATH]/[CONTENT]

  • [SITE] = the name of the site where the content resides.

  • [SITE_AREA_PATH] = the path to the site area where the content resides.

  • [CONTENT] = the 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/[SITE]/[SITE_AREA_PATH]/[CONTENT]

  • [HOST] = the name of the WCM host.

  • wps/wcm = the WCM context root.

  • [SITE] = the name of the site where the content resides.

  • [SITE_AREA_PATH] = the path to the site area where the content resides.

  • [CONTENT] = the 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] = the name of the Portal Server host

  • [PORTAL_CONTEXT_ROOT] = the Portal Server context root. For anonymous sites use /wps/portal, otherwise use /wps/myportal

  • [PORTAL_PAGE_URL_MAPPING] = the 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] = the 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=<pathCmpnt type="noprefixservlet" />/[SITE]/[SITE_AREA_PATH]/[CONTENT]

  • [PORTAL_HOST] = the name of the Portal Server host

  • [PORTAL_CONTEXT_ROOT] = the Portal Server context root. For anonymous sites use /wps/portal, otherwise use /wps/myportal

  • [PORTAL_PAGE_URL_MAPPING] = the Portal Server URL MAPPING to the portal page that contains the WCM portlet (URL mapping's can be setup via the Portal Server Administration).

  • [SITE] = the name of the site where the content resides.

  • [SITE_AREA_PATH] = the path to the site area where the content resides.

  • [CONTENT] = the name of the content item.

 

Parent Topic

Display Web content