Portal, Express Beta Version 6.1
Operating systems: i5/OS, Linux,Windows |
The URLCmpnt tag is used to generate a URL to a site, site area or content item.
<URLCmpnt mode=" " context=" " type=" " name=" " portalTarget" " start=" " end=" " /> | |
---|---|
<URLCmpnt | Opens a URLCmpnt tag. |
mode=" " | This determines the type of URL that will be generated:
If no mode is specified, mode="current" is used. |
context=" " | This determines which item to generate a URL for.
|
type=" " | This determines the item type to generate a URL for. Either "site", "sitearea" or "content". This is only required if context="current" or context="selected". |
name=" " | Enter the name and library of the item to generate a URL for. For example, name="library/item" . If no library is specified, the library specified in the URL of the current page is used. This is not used if context="current" or context="autofill". |
portalTarget=" " | Enter the name of the URL map of the target portal page. This is only required if mode="current" or mode="portal". |
start=" "
end=" " | The start and end attributes are used to wrap the data returned by a Web content tag within other tags, such as HTML. These attributes are not mandatory. |
/> | Closes the tag. |
This is an example of how to use a URLCmpnt tag to create a link. The text of the link is generated using an IDCmpnt tag.
<a HREF= "<URLCmpnt context="autofill" type="content" mode="portal" portalTarget="URLMap">" target="_blank"> <IDCmpnt context="autofill" field="title"> </a>Parent topic: Displaying Web content Related reference