Display Content via the WCM Servlet

 

+
Search Tips   |   Advanced Search

 

Users can access content displayed via the WCM Servlet by connecting to a URL.

http://[HOST]:[PORT]/wps/wcm/connect/[PATH]?srv=

For example...

http://www.hostname.com:9081/wps/wcm/connect/Intranet

PATH can be the path to a Site, Site Area, or Content item. This must be entered for all types of content including Components. In the case of Components, this is the path to the Site, Site Area, or Content item that the Component is displayed with.

srv= is either cmpnt or page

    srv=cmpnt Retrieve a Component either from the Component Library or from a Site, Site Area or Content item. also specify the following:

    source=

    Where the Component is being sourced from. This is either:

    • library
    • site
    • sitearea
    • content

    cmpntname=[componentname]

    Name of the Component being retrieved.
    srv=page Retrieve a WCM Content item. As srv=page is returned as default, this can be left out of the URL.

    The Presentation Template to use when displaying this Content is specified by adding:

    presentationtemplate=[presentationtemplatename]

    Name of the Presentation Template being retrieved.

 

Examples:

URL to a Library Component

http://[HOST]:[PORT]/wps/wcm/connect/[PATH]?srv=cmpnt&source=library&cmpntname=[componentname]

Example:

http://host:9081/wps/wcm/connect/site/sitearea/content?srv=cmpnt&source=library&cmpntname=component

URL to a Content Component

http://[HOST]:[PORT]/wps/wcm/connect/[PATH]?srv=cmpnt&source=content&cmpntname=[componentname]

Example:

http://host:9081/wps/wcm/connect/site/sitearea/content?srv=cmpnt&source=content&cmpntname=component

URL to Content

http://[HOST]:[PORT]/wps/wcm/connect/[PATH]

Example:

http://host:9081/wps/wcm/connect/site/sitearea/content

URL to Content with a Presentation Template defined

http://[HOST]:[PORT]/wps/wcm/connect/[PATH]?presentationtemplate=[presentationtemplatename]

Example:

http://host:9081/wps/wcm/connect/site/sitearea/content?presentationtemplate=presentationtemplate

 

Applying Custom Caching and Expiring Parameters

Like any other URL request made to a WCM Server, Custom Caching and Expiring parameters can be added to a request. See the topic, Using Custom Caching for further information.

Example:

http://[HOST]:[PORT]/wps/wcm/connect/[PATH]?CACHE=SITE&EXPIRES=REL+9000s

In this example, the content being retrieved via URL will be saved in the Basic Site Cache, and expired after 9000 seconds (two and half hours).

Note that Non-ascii characters can not be used in the query string section of URLs. For this reason, it is best not to name WCM items using Non-ascii characters if you plan to use URLs to call WCM items.

Parent topic: Displaying WCM Content.

Parent topic: Content Delivery Guide.

Parent topic: Using Custom Caching.


IBM Workplace Web Content Management - V5.1.0.1 -

 

Workplace Web Content Management is a trademark of the IBM Corporation in the United States, other countries, or both.

 

IBM is a trademark of the IBM Corporation in the United States, other countries, or both.