Portal Express, Version 6.0
Operating systems: i5/OS, Linux, Windows
Writing links to Web Content Management content
Links to content items can be written as URLs.
Linking to Web Content Management content from Web Content Management 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
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 Web Content Management™ items using non-ascii characters if you plan to use URLs to call Web Content Management items.
To create a link from a piece of Web Content Management content to another piece of Web Content Management content, use the following URL format:
<pathCmpnt type="servlet" />/[LIBRARY]/[SITE]/[SITE_AREA_PATH]/[CONTENT]
- [LIBRARY] = the name of the Web content library.
- [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.
Linking to Web Content Management content from an external portlet or web site
To create a link from an external portlet or web site that displays Web Content Management content, use the following URL format:
http://[HOST]/wps/wcm/connect/[LIBRARY]/[SITE]/[SITE_AREA_PATH]/[CONTENT]
- [HOST] = the name of the Web Content Management host.
- wps/wcm = the Web Content Management context root.
- [LIBRARY] = the name of the Web content library.
- [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 Web Content Management 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 Web Content Management 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 Web Content Management Portlet (URL Mapping's can be setup via the Portal Server Administration).
- [ILWWCM_PAGE_URL] = the full URL to the Web Content Management Content.
Change Web Content Management content via a Rendering Portlet from Web Content Management content
To create a link in Web Content Management Content that causes an existing Rendering Portlet to display different Web Content Management Content, use the following URL format:
http://[PORTAL_HOST]/[PORTAL_CONTEXT_ROOT]/[PORTAL_PAGE_URL_MAPPING] /?New_WCM_Context=<pathCmpnt type="noprefixservlet" /> /[LIBRARY]/[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 Web Content Management Portlet (URL Mapping's can be setup via the Portal Server Administration).
- [LIBRARY] = the name of the Web content library.
- [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:
Displaying Web content