Display content via the IWWCM servlet
Users can access content displayed via the Web Content Management servlet by connecting to a URL.
http://[HOST]:[PORT]/wps/wcm/connect/[PATH]?srv=
- [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 This will retrieve a component either from the component library or from a site, site area or content item. You must also specify the following:
- source=
- This determines where the component is being sourced from. This is either:
- library
- site
- sitearea
- content
- cmpntname=[componentname]
- This is the name of the component being retrieved.
srv=page This will retrieve an Web Content Management 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]
- This is the 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=componentFor cxample:
http://host:10038/wps/wcm/connect/site/sitearea/content?srv=cmpnt&source=library&cmpntname=componentURL to a content component
http://[HOST]:[PORT]/wps/wcm/connect/[PATH] ?srv=cmpnt&source=content&cmpntname=[componentname]Example: http://host:10038/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:10038/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:10038/wps/wcm/connect/site/sitearea/content?presentationtemplate=presentationtemplate
Applying Custom Caching and Expiring Parameters.
Like any other URL request made to a Web Content Management 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+9000sIn 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).
Parent Topic
Configuring a delivery server
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 Web Content Management items using Non-ascii characters if you plan to use URLs to call Web Content Management items.