Tag reference sheet

Tag library reference for the following tag libraries:

GST Site Foundation Taglib - version 1.1

usage: <%@ taglib uri="http://gst.fatwire.com/foundation/tags/gsf-install" prefix="gsf-install" %>

Namespace definition: xmlns:gsf-install="http://gst.fatwire.com/foundation/tags/gsf-install"

Tags

  • install Install the GSF components (besides the JAR and CatalogMover components, of course)
  • install-status Check the installation status of the GSF

Required attributes are marked with a*

<gsf-install:install>

Install the GSF components (besides the JAR and CatalogMover components, of course).

Can contain:empty

Attributes

NameDescriptionType
componentsComma-separated list components to be installed.String
familiesComma-separated list of flex family attribute type names into which the GST attributes will be installed. If not specified, they will be installed into the GSTAttribute flex family.String
output*Name of variable and page context attribute to store the install statusString

<gsf-install:install-status>

Check the installation status of the GSF. Anything non-zero means parts are missing.

Can contain:empty

Attributes

NameDescriptionType
familiesComma-separated list of flex family attribute type names into which the GST attributes will be installed. If not specified, they will be installed into the GSTAttribute flex family.String
output*Name of variable and page context attribute to store the resultString

GST Site Foundation Taglib - version 1.1

usage: <%@ taglib uri="http://gst.fatwire.com/foundation/tags/gsf" prefix="gsf" %>

Namespace definition: xmlns:gsf="http://gst.fatwire.com/foundation/tags/gsf"

Tags

  • asset-children A facade over asset:children
  • asset-load Loads an asset
  • asset-query A tag to query for assets
  • asset-tagged-list Given an input assettype and assetid, convert it into a tag string format and return an IList with ASSETTYPE,ASSETID as columns for any assets found that match the specified tag
  • callaction This tag calls an action
  • get-asset-tags Given an asset, return the tags, converted to AssetIds, for that asset in list form
  • get-properties Tag to expose the property asset values for JSP EL
  • get-property Tag to expose the asset id part of a property of any type to a JSP EL
  • get-property-assetid Tag to expose the asset id part of a property of type "asset id" to a JSP EL
  • get-tags Given an asset, return the tags for that asset in list form
  • include This tag is used to include a template,element or page
  • multilingual-navigation Given an input pagename for the name of the Page asset return the NavNodes for that page
  • navigation Given an input pagename for the name of the Page asset return the NavNodes for that page
  • root Tag to expose ics variables as page attributes for JSP EL
  • set-property Tag to set a property asset
  • tagged-assets Given an input tag, returns an Collection of AssetIds for any assets found that match the specified tag
  • tagged-list Given an input tag, returns an IList with ASSETTYPE,ASSETID as columns for any assets found that match the specified tag
  • translate-asset Tag to translate a single asset
  • translate-list Tag to translate the results of a recommendation call (or any other list containing assettype,assetid columns

Required attributes are marked with a*

<gsf:asset-children>

A facade over asset:children

Can contain:empty

Attributes

NameDescriptionType
assoc*the name of the associationString
attributesthe asset attributes to retrieve, if provided the child assets are loaded with the listed attributes. If this is not provided, a list of AssetId's are returned, if a '*' is provided, all the attributes are returned. String
cthe assettypeString
cidThe assetid.long
list*the name of the collection with the child assetsString

<gsf:asset-load>

Loads an asset. It puts a TemplateAsset on the page scope with the variable key as provided by the 'name' attribute.

Can contain:empty

Attributes

NameDescriptionType
attributesthe asset attributesString
cthe assettypeString
cidThe assetid.long
name*the name of the loaded asset as JSP page attributeString

<gsf:asset-query>

A tag to query for assets.

Can contain:empty

Attributes

NameDescriptionType
attributesthe asset attributesString
c*the assettypeString
list*the name of the list with the loaded asset as JSP page attributeString
query*the queryString
subtypethe subtypeString

<gsf:asset-tagged-list>

Given an input assettype and assetid, convert it into a tag string format and return an IList with ASSETTYPE,ASSETID as columns for any assets found that match the specified tag. The result is also stored in the jsp context using the name outlist.

Can contain:tagdependent

Attributes

NameDescriptionType
assetid*the assetidString
assettype*the assettypeString
outlist*the name of the list containing the resultString

<gsf:callaction>

This tag calls an action.

Can contain:empty

Attributes

NameDescriptionType
actionthe name of the actionString

<gsf:get-asset-tags>

Given an asset, return the tags, converted to AssetIds, for that asset in list form.

Can contain:empty

Attributes

NameDescriptionType
cthe assettypeString
cidThe assetid.long
name*the name of the loaded asset as JSP page attributeString

<gsf:get-properties>

Tag to expose the property asset values for JSP EL. Property assets are of type and subtype GSTProperty and have three fields/attributes: name, description, value. Description is for human descriptive use only. The properties are exposed in the page context under the prefix "props".

Can contain:empty

This tag has no attributes.

<gsf:get-property>

Tag to expose the asset id part of a property of any type to a JSP EL. Property assets are of type and subtype GSTProperty and have three fields/attributes: name, description, value. Description is for human descriptive use only.

Can contain:empty

Attributes

NameDescriptionType
name*the name of the output scripting variableString
property*the property nameString

<gsf:get-property-assetid>

Tag to expose the asset id part of a property of type "asset id" to a JSP EL. in the form AssetId. Property assets are of type and subtype GSTProperty and have three fields/attributes: name, description, value. Description is for human descriptive use only.

Can contain:empty

Attributes

NameDescriptionType
name*the name of the output scripting variableString
property*the property nameString

<gsf:get-tags>

Given an asset, return the tags for that asset in list form.

Can contain:empty

Attributes

NameDescriptionType
cthe assettypeString
cidThe assetid.long
name*the name of the loaded asset as JSP page attributeString

<gsf:include>

This tag is used to include a template,element or page.

Can contain:empty

Attributes

NameDescriptionType
name*the name of include to callString

<gsf:multilingual-navigation>

Given an input pagename for the name of the Page asset return the NavNodes for that page. Automatically translates the WRAs associated to the page asset using the dimension set specified (or discovered) into the locale specified (or discovered).

Can contain:empty

Attributes

NameDescriptionType
depththe depth of the navigation, defaults to 1int
dimsetName of dimension set in String form, or ID of dimension set in String form.String
localePreferred locale. Can be either a String corresponding to the name of the dimension, or a String corresponding to the ID of the dimension. If not specified, an attempt to locate the locale in the context is made.String
name*the name of jsp page attribute holding the NavNodeString
pagename*the name of the Page assetString

<gsf:navigation>

Given an input pagename for the name of the Page asset return the NavNodes for that page.

Can contain:empty

Attributes

NameDescriptionType
depththe depth of the navigation, defaults to 1int
name*the name of jsp page attribute holding the NavNodeString
pagenamethe name of the Page asset. This attribute is optional and if omitted the root nodes of the current site are returned.String

<gsf:root>

Tag to expose ics variables as page attributes for JSP EL. Content Server variables, lists, and objects are exposed with the prefix "cs". Also exposes an instance of ScatteredAssetAccessTemplate under the name assetDao which is very useful for accessing asset data. Lastly, this tag records dependencies for tid, seid, eid which means it is not necessary to do this within a JSP. This tag should be placed immediately inside the cs:ftcs tag <cs:ftcs>gsf:root> jsp code </gsf:root><cs:/ftcs> If the optional parameter action is provided, the action with that name will be executed by this tag.

Can contain:JSP

Attributes

NameDescriptionType
actionthe name of the actionString

<gsf:set-property>

Tag to set a property asset. Tags are immediately persisted to the repository. The property is automatically added to the current site, as determined by locating the session variable "pubid".

Can contain:empty

Attributes

NameDescriptionType
descriptionthe property descriptionString
property*the name of the output scripting variableString
publistList of site names to add to those currently set for this property.String
valuethe property nameString

<gsf:tagged-assets>

Given an input tag, returns an Collection of AssetIds for any assets found that match the specified tag. The result is also stored in the jsp context using the name outlist.

Can contain:empty

Attributes

NameDescriptionType
list*the name of the list containing the resultString
tag*the name of the tagString

<gsf:tagged-list>

Given an input tag, returns an IList with ASSETTYPE,ASSETID as columns for any assets found that match the specified tag.

Can contain:tagdependent

Attributes

NameDescriptionType
outlist*the name of the list containing the resultString
tag*the name of the tagString

<gsf:translate-asset>

Tag to translate a single asset. If the dimensionset cannot be found, or if the locale is not found, the original asset is returned. The output corresponds to an AssetId, and is set in the page scope as well as in the ICS variable scope by way of scattered variables. Typical usage, therefore, is [gsf:translate-asset assetid="${wra}" output="xlatWra" /] or [gsf:translate-asset assetid="${wra}" dimset="1231243278234" locale="en_US" output="xlatWra"/] [gsf:translate-list assetid="${wra}" dimset="global" locale="11123323235792" output="xlatWra"/] or other similar variants.

Can contain:empty

Attributes

NameDescriptionType
dimsetName of dimension set in String form, or ID of dimension set in String form. If not specified, the tag checks to see if the site has only one assigned, and if so, uses it. One must be found or else no translation will occur.String
id*ID of asset to translatecom.fatwire.assetapi.data.AssetId
localePreferred locale. Can be either a String corresponding to the name of the dimension, or a String corresponding to the ID of the dimension. If not specified, an attempt to locate the locale in the context is made.String
output*Name of output AssetId in the page scope. Also, the prefix to be used for ICS scope variables corresponding to PREFIX:c for asset type, and PREFIX:id for assetid. The name must be compatible with EL syntax.String

<gsf:translate-list>

Tag to translate the results of a recommendation call (or any other list containing assettype,assetid columns. If the dimensionset cannot be found, or if the locale is not found, the original list is returned. The outlist is also set into the page context for iteration, as an instance of List(AssetId) with the name corresponding to outlist (or inlist if outlist is not set). Typical usage, therefore, is [gsf:translate-list inlist="recoList", dimset="global" /] or [gsf:translate-list inlist="recoList" dimset="1231243278234" locale="en_US" outlist="translatedList"/] [gsf:translate-list inlist="recoList" dimset="global" locale="11123323235792"/] or other similar variants.

Can contain:empty

Attributes

NameDescriptionType
dimsetName of dimension set in String form, or ID of dimension set in String form.String
inlist*Name of input list in ICS context. Must have columns assettype,assetid. Other columns are ignored.String
localePreferred locale. Can be either a String corresponding to the name of the dimension, or a String corresponding to the ID of the dimension. If not specified, an attempt to locate the locale in the context is made.String
outlistName of output list object in the ICS context. Will have columns assettype,assetid. The number and contents of other columns is not specified. If this attribute is not specified, the inlist will be replaced by this list. The name must be compatible with EL syntax.String

GST Site Foundation Pages Taglib - version 1.2

DEPRECATED, use the http://gst.fatwire.com/foundation/tags/gsf taglib.null usage: <%@ taglib uri="http://gst.fatwire.com/foundation/tags/p" prefix="p" %>

Namespace definition: xmlns:p="http://gst.fatwire.com/foundation/tags/p"

Tags

  • callaction This tag calls an action
  • include This tag is used to include a template,element or page
  • page This tag executes a model at the start of the template

Required attributes are marked with a*

<p:callaction>

This tag calls an action.

Can contain:empty

Attributes

NameDescriptionType
actionthe name of the actionString

<p:include>

This tag is used to include a template,element or page.

Can contain:empty

Attributes

NameDescriptionType
name*the name of include to callString

<p:page>

This tag executes a model at the start of the template. It is a replacement for the gsf:root tag. This tag should be placed immediately inside the cs:ftcs tag <cs:ftcs>p:page> jsp code <p:page><cs:ftcs>.

Can contain:JSP

Attributes

NameDescriptionType
actionthe name of the actionString