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 JSR 286 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:


Linking 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:

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 you use the following parameter:

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 area News, you can create a link to that content item with the following URL:

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

The JSR 286 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

You can add web content Cache parameters and Cache expire parameters to a URL to custom caching strategies to individual items. For example:


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:


Parent

Create links and navigation

December 14, 2011
   

 

Apr 1, 2011 1:26:17 PM

});


+

Search Tips   |   Advanced Search