Home > Contents > Index >
satellite.link
Primary link generation tag for Content Server.
Syntax
<satellite.link [pagename="page name"] [outstring="output variable name"] [container="servlet or portlet"] [satellite="true or false"] [classname="IReference class"] [overridetype="export or dynamic"] [urlbase="url base"] [portletmode="view, edit, help, etc"] [windowstate="maximized, minimized, etc."] [portleturltype="render or action"] [assembler="uri assembler shortform"] > [<satellite.parameter name="param name" value="param value" [condition="condition"] />] [<satellite.preference name="param name" value="param value" [condition="condition"] />] </satellite.link>Parameters
pagename (optional)
- Name of the page the link is for. In the case of a portlet action url, pagename is not required.
outstring (optional)
- The name of the output variable containing the URL generated by this tag. The default variable name is
referURL
.
container (optional)
- Specify either
servlet
orportlet
to construct a URL for that particular container. This is typically used as an override when constructing a link to a servlet from within a portlet. If this is omitted, Content Server will detect the current container type and the current type will be used.
satellite (optional)
- Specify either
true
orfalse
to force the url to be generated for a servlet context or a satellite server context respectively. If not specified (the default behaviour), Content Server will detect whether or not the URL should be generated for Satellite Server and set the value accordingly.
classname (optional)
- This parameter is used by the URL generation mechanism to allow the class implementing the IReference interface to be overidden. This can be useful when modifying the URL structure or when modifying the exported path names. The default value is
COM.FutreTense.Export.DiskPageRef
.
overridetype (optional)
- This parameter is used by the URL generation mechanism to override the type of link to be generated. By default, Content Server will generate a dynamic link if the page is being generated dynamically, and a static link if the page is being exported.
static
can be specified to force a static link, anddynamic
can be specified to force a dynamic link.
urlbase (optional)
- Specifies the entire URL up to the query string excluding the question mark (?). This parameter can be used to hard code another server or servlet. By default a link to either Content Server or Satellite Server will be generated.
cachecontrol (optional)
- Specifies the cache expiration information for the page if it is being served by Satellite Server. This value is specified by the TimePattern class. View the Java API Reference for TimePattern for details.
portletmode (optional)
- Specifies the portlet mode for the URL being generated. If the URL is not being generated for a portlet, this value is ignored. Possible values may include
edit
,view
, andhelp
. If omitted, no value is specified.
windowstate (optional)
- Specifies the windowstate of the portlet being referred to by this URL. Values are defined by JSR-168 and can include
maximized
,minimized
, etc. If omitted, no value is specified.
portleturltype (optional)
- Specifies whether the portlet url being specified is an action url (
action
) or a render url (render
). By default, a render url is used.
assembler
(optional)- Short form name for uri assembler class. Specifying an assembler overrides the default assembler used by Content Server to construct URLs. Omitting this value will cause URLs generated by this tag to use the assembler registered with an index of 0 in the request property file.
satellite.parameter (optional)
- Arbitrary name-value pair that is added to the URL. If the associated page is to be cached, the parameter name should be specified as PageCriteria in the SiteCatalog.
satellite.preference (optional)
- Arbitrary portlet preference value that will be added to the URL. If specified, CSPortlet-derived portlets will automatically set portlets by this name into the portal server.
Description
This tag is the primary mechanism by which Content Server URLs are generated.
The following functionality is specified by this tag:
- automatic generation of URLs for Satellite Server or Content Server depending on context
- automatic generation of static or dynamic URLs depending on whether the page is currently being exported to disk
- automatic generation of portlet URLs or servlet URLs depending on the current container type
- override parameters for all of the above
- override parameters for specifying the Satellite Server cache expiration information
- override parameter for the class name implementing the IReference interface which constructs the URL
- wrapper functionality over standard portlet URL behaviour
- override for urlbase to allow users to specify a url outside Content Server.
- override output variable name
Any URL created for Content Server should use this tag or one of its derived tags (such as RENDER.GETPAGEURL).
errno
None
Example
This example shows how to construct a URL to a page in Content Server. This represents the most common usage of this tag.
<satellite.link pagename="OpenMarket/Samples/NewPortal/JSP/Main"> <satellite.parameter name="mode" value="article"/> <satellite.parameter name="articleid" value="articlelist.id"/> </satellite.link>See Also