+

Search Tips   |   Advanced Search

Writing links to Web content

Links to content items can be written as URLs.


Linking to web content from other web content

The following examples show how to write links to web content that are to be used with the web content viewer or the Web Content Manager servlet.

To create a link from a piece of web content to another piece of web content, use the following URL format:

[URLCmpnt mode="current" context="Selected" type="Content" 
name="LIBRARY/SITE_AREA_PATH/CONTENT"]


Linking to web content from an external portlet or web site

To create a link from an external portlet or web site that displays web content, use the following URL format:

http://HOST/wps/connect/LIBRARY/SITE_AREA_PATH/CONTENT


Linking to content displayed in a 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 web content viewer, use the following URL format:

http://PORTAL_HOST/wps/mypoc/vp_mapping?urile=wcm%3Apath%3ALIBRARY/
SITE_AREA_PATH/CONTENT&page=unique_name | object_id | &mapping=mapping | 
&current=true | &pagedesign=LIBRARY/PRES_TEMPLATE_NAME

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

To address a specific presentation template to use to render the web content we use the following parameter:

Dynamic page lookup: The page parameter is optional. We can use the link broadcasting feature of the 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 area News, we can create a link to that content item with the following URL:

http://host_name/wps/mypoc?urile=wcm%3Apath%3A/Web+Content/News/News1

Alternatively we can also add a specific portal page using a URL mapping using the following format:

http://PORTAL_HOST/PORTAL_CONTEXT_ROOT
/PORTAL_PAGE_URL_MAPPING/?current=true&urile=wcm%3Apath%3ALIBRARY/SITE_AREA_PATH/CONTENT

The web content viewer on the target page must be configured to receive links from Other portlets and this portlet.


Add cache parameters to a URL

We 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/connect/LIBRARY/SITE_AREA_PATH/CONTENT>?cache=site&contentcache=session


Add a last modified parameter to a URL

We can add the last modified date of the current content item to the header of the rendered page. For example:

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


Parent: Tags