PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
URL generation using PathCmpnt and URLCmpnt tags
We use URLCmpnt and PathCmpnt component tags to create URLs to web content items. Adding parameters to a portal URL does not affect the web content viewer. To do accomplish this, we need to create the URL using either the URLCmpnt or PathCmpnt tag. Extra URL query parameters, like those parameters used with the traditional web content viewer, can be appended to the URLs generated by these tags.
URLCmpnt Create URLs to content items based on context of current page. For example, to assign site area to variable url:
url = "[URLCmpnt context="autofill" type="sitearea" htmlencode="false" mode="current"]";
Can be used in search components or presentation template. If the attribute mode="portal" is set, the content item is displayed through a content viewer portlet.
PathCmpnt Create the base part of a URL in web content. Typically, the base part is extended by a string that identifies the content to display. If used inside the context of a web content viewer, the generated URL has the updated URL format and thus cannot be displayed with the traditional web content viewer.
Parent topic: Elements