+

Search Tips   |   Advanced Search


Writing links to Web Content Management content

Links to content items can be written as URLs.


Link 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 Lotus 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]


Link 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]


Link to content displayed in a JSR 286 Web Content Viewer from an external portlet or Web site

To create a link from an external portlet or Web site to content displayed in a JSR 286 Web Content Viewer, use the following URL format:

http://[PORTAL_HOST]/wps/[my]poc[/vp_mapping]?urile=wcm%3Apath%3A[LIBRARY]/
[SITE_AREA_PATH]/[CONTENT][[&page=unique_name | object_id] | [&mapping=mapping] | [&current=true]]

To address a specific portal page, use one of the following parameters. The parameters cannot be combined.

Dynamic page lookup: The page parameter is optional. You can use the link broadcasting feature of the JSR 286 Web Content Viewer to dynamically look up pages by simply omitting the page parameter.

For example, if you have a content item called News1, stored in the library Web Content under the site My Site and the site area News, you can create a link to that content item with the following URL:

http://host_name/wps/mypoc?urile=wcm%3Apath%3A/Web+Content/My+Site/News/News1
Alternatively you can also add a specific portal page using a URL mapping by using the following format:

http://[PORTAL_HOST]/[PORTAL_CONTEXT_ROOT]
/[PORTAL_PAGE_URL_MAPPING]/?current=true&urile=wcm%3Apath%3A[LIBRARY]/[SITE]/[SITE_AREA_PATH]/[CONTENT]

The JSR 286 Web Content Viewer on the target page must be configured to receive links from Other portlets and this portlet.


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]/?WCM_GLOBAL_CONTEXT=[ILWWCM_PAGE_URL]


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]
/?WCM_GLOBAL_CONTEXT=<pathCmpnt type="noprefixservlet" />
/[LIBRARY]/[SITE]/[SITE_AREA_PATH]/[CONTENT]


Add cache paramters to a URL

You can add Web content Cache parameters and Cache expire parameters to a URL to custom caching strategies to individual items.

For example:

http://[HOST]/wps/wcm/connect/[LIBRARY]/[SITE]/[SITE_AREA_PATH]/[CONTENT]>?cache=site&contentcache=session


Add a last modified parameter to a URL

You can add the last modified date of the current content item to the header of the rendered page.

For example:

http://[HOST]/wps/wcm/connect/[LIBRARY]/[SITE_AREA_PATH]/[CONTENT]>?returnLastModified=true


Parent topic:

Web content creation features