Class AmetysXSLTHelper
java.lang.Object
org.ametys.core.util.AmetysXSLTHelper
org.ametys.cms.transformation.xslt.AmetysXSLTHelper
org.ametys.web.transformation.xslt.AmetysXSLTHelper
- All Implemented Interfaces:
Contextualizable,LogEnabled,Serviceable
- Direct Known Subclasses:
LinkDirectoryXSLTHelper,OrgUnitXSLTHelper,UgcXSLTHelper,UserXSLTHelper
Helper component to be used from XSL stylesheets.
-
Field Summary
Fields inherited from class org.ametys.cms.transformation.xslt.AmetysXSLTHelper
_ametysObjectResolver, _contentHelper, _context, _cTypeExtensionPoint, _logger, _richTextHelper, _tagProviderExtPtFields inherited from class org.ametys.core.util.AmetysXSLTHelper
_currentUserProvider, _groupManager, _i18nUtils, _jsonUtils, _LOGGER, _rightManager, _sourceResolver, _userHelper, _userManager, _versionHandler -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringReturns the absolute URI prefix corresponding to the current site, depending on the rendering context.static StringabsoluteSiteUriPrefix(String siteName) Returns the absolute URI prefix corresponding to the given site, depending on the rendering context.static StringReturns the absolute URI prefix, depending on the rendering context.static NodeListaccessibleReferencedPages(String contentId) Returns the id of pages referencing the content and for which the Front-office user can accessstatic NodeListComputes the breadcrumb of the current page.static NodeListcontentViewParameter(String parameterPath) Returns the value of the given parameter for the current content, or the empty node if the parameter does not exist.static NodeListGet the parameters of the current contentstatic NodeListReturns the ids of the contentsstatic NodeListfindContentsIdsByTag(String sitename, String lang, String tag) Returns the ids of the contentsstatic NodeListfindPagesIdsByTag(String tag) Returns the ids of the pages tagged with the specified tagstatic NodeListfindPagesIdsByTag(String tag, boolean checkReadAccess) Returns the ids of the pages tagged with the specified tagstatic NodeListfindPagesIdsByTag(String sitename, String lang, String tag) Returns the ids of the pages tagged with the specified tagstatic NodeListfindPagesIdsByTag(String sitename, String lang, String tag, boolean checkReadAccess) Returns the ids of the pages tagged with the specified tagstatic booleanhasReadAccessOnPage(String pageId) Returns true if the current user has read access on the specified pagestatic booleanhasRightOnPage(String rightId) Returns true if the current user has the specified right on the current pagestatic booleanhasRightOnPage(String rightId, String pageId) Returns true if the current user has the specified right on the specified pagestatic booleanDetermines if the current zone item or (if there is no current zone item) the current page is cacheable This method is only valid for a page.static booleanDetermines if a captcha is required on forms of the current pagestatic booleanisCaptchaRequired(String ametysObjectId) Determines if a captcha is required on forms of the given ametys objectstatic booleanDetermines if we are in an edition modestatic Stringlang()Returns the current sitemap name.static StringReturns the current sitemap name.static booleanpageExists(String sitename, String lang, String path) Determines if page existsstatic booleanpageHasRestrictedAccess(String pageId) Returns true if the given page has restricted access.static booleanpageHasRestrictedAccess(String sitename, String lang, String path) Returns true if the given page has restricted access.static StringpageId()Returns the id of the current page.static booleanpageIsVisible(String pageId) Returns true if the given page is visible into navigation elementsstatic booleanpageIsVisible(String sitename, String lang, String path) Returns true if the given page is visible into navigation elementsstatic StringpageLongTitle(String pageId) Get the long title of a pagestatic StringpageLongTitle(String sitename, String lang, String path) Get the long title of a pagestatic StringpageMetadata(String pageId, String dataPath) Get the data of a page at the given pathstatic StringpageMetadata(String sitename, String lang, String path, String dataPath) Get the data of a page at the given pathstatic StringpagePath()Returns the path of the current page, relative to the sitemap's root.static StringReturns the path in sitemap of a pagestatic StringpageSiteName(String pageId) Get the site name of a page.static StringGet the title of a page.static StringGet the title of a page.static StringGet the type of a page.static StringGet the linked url of a page.static StringpageUrlType(String pageId) Get the linked URL type of a page.static AmetysNodeListpagination(int nbPages, int currentPage, int nbFirstPages, int nbCentralPages, int nbLastPages) Generates a XML structure to help to creates a complex pagination.static StringpluginResourceURL(String plugin, String path) Computes the URI for the given resource in the given plugin.
If the URI is requested by the front-office, it will be absolutized.static NodeListreferencedPages(String contentId) Returns the id of pages referencing the contentstatic StringReturns the currentRenderingContext.static NoderesourceByPath(String path) Returns a DOMElementrepresenting a single file of the resources explorer.static NoderesourcesById(String collectionId) Returns a DOMElementrepresenting files and folder of the resources explorer, under theResourceCollectioncorresponding to the given id.static NoderesourcesByPath(String path) Returns a DOMElementrepresenting files and folder of the resources explorer, under theResourceCollectioncorresponding to the given path.voidservice(ServiceManager manager) static NodeserviceParameter(String parameterPath) Returns the value of the given parameter for the current service, or the empty string if the parameter does not exist.static NodeserviceParameter(String parameterPath, Object defaultValue) Returns the value of the given parameter for the current service, or the provided default value if the parameter does not exist.static NodeGet the service parameters as aNode.static NodeListserviceViewParameter(String parameterPath) Returns the value of the given parameter for the current service, or the empty node if the parameter does not exist.static NodeListGet the parameters of the current servicestatic Stringsite()Returns the current sitestatic StringReturns the current sitestatic NodeListReturns the sitemap' names handled by the current sitestatic NodeListsiteLanguages(String siteName) Returns the sitemap' names handled by a sitestatic Nodesitemap()Deprecated.Use the version with depth argumentstatic Nodesitemap(boolean includeInvisiblePages) Deprecated.Use the version with depth argumentstatic Nodesitemap(long depth) Return the current sitemap as aNode.static Nodesitemap(long depth, boolean includeInvisiblePages) Return the current sitemap as aNode.static NodeDeprecated.Use the version with depth argumentstatic NodeReturn the subsitemap of the given page as aNode.static NodeReturn the subsitemap of the given page as aNode.static NodeReturn the subsitemap of the given page as aNode.static StringsiteParameter(String parameter) Return the value of a site parameter as a String.static StringsiteParameter(String siteName, String parameter) Return the value of a site parameter as a String.static StringReturns the URI prefix corresponding to the current site, depending on the rendering context.static Stringskin()Returns the current skin name.static StringskinBoundedImageURL(String path, int maxHeight, int maxWidth) Computes the URI for the given image with a given heigth and width in the current site's skin.
If the URI is requested by the front-office, it will be absolutized.static StringskinImageBase64(String path) Computes the base 64 representation of the image at the specified path.static StringskinImageBase64(String skin, String path) Computes the base 64 representation of the image at the specified path.static StringskinImageURL(String path, int height, int width) Computes the URI for the given image with a given heigth and width in the current site's skin.
If the URI is requested by the front-office, it will be absolutized.static NodeskinResources(String path) Returns a DOMElementrepresenting files and folder of a skin directory.static StringComputes the URI for the given resource in the current site's skin.
If the URI is requested by the front-office, it will be absolutized.static Stringtemplate()Returns the current template name.static NodeListtemplateParameter(String parameterPath) Returns the value of the given parameter for the current page template, or the empty node if the parameter does not exist.static NodeListtemplateParameter(String pageId, String parameterPath) Returns the value of the given parameter for the given page template, or the empty node if the parameter does not exist.static NodeListGet the parameters' values of the current templatestatic StringtemplateURL(String path) Computes the URI for the given resource in the current template.
If the URI is requested by the front-office, it will be absolutized.static StringReturns the current URI prefix, depending on the rendering context.static NodeurlPreview(String url) Get the preview of a url (title, description, image, favico)static NodeuserByMail(String email) Return the given user by its email over all authorized population on current sitestatic StringReturn the name of the zone beeing handledstatic StringReturns the id of the current zone item id.static NodeListzoneItemParameter(String parameterPath) Returns the value of the given parameter for the current zone item, or the empty node if the parameter does not exist.static NodeListzoneItemParameter(String zoneItemId, String parameterPath) Returns the value of the given parameter for the given zone item, or the empty node if the parameter does not exist.static NodeListGet the parameters of the current zone itemstatic NodeListzoneItemParameters(String zoneItemId) Get the parameters of a given zone itemstatic intGet the position of the current zone item in its zonestatic NodeListzoneParameter(String parameterPath) Returns the value of the given parameter for the current page and current zone, or the empty node if the parameter does not exist.static NodeListzoneParameter(String zoneName, String parameterPath) Returns the value of the given parameter for the current page and given zone, or the empty node if the parameter does not exist.static NodeListzoneParameter(String pageId, String zoneName, String parameterPath) Returns the value of the given parameter for the given page and given zone name, or the empty node if the parameter does not exist.static NodeListGet the parameters of the current zonestatic NodeListzoneParameters(String zoneName) Get the parameters of a given zoneMethods inherited from class org.ametys.cms.transformation.xslt.AmetysXSLTHelper
_contentTags, _getNodeValues, _getNodeValues, contentAttachments, contentAttachments, contentAttribute, contentAttribute, contentExcerpt, contentMetadata, contentMetadata, contentMixinTypes, contentTags, contentTags, contentTypes, contentTypeTags, contextualize, enableLogging, getContentView, getContentView, getContentView, getContentView, getContentView, hasValue, isReferenceTableContent, setCurrentContent, setCurrentContent, tagColor, tagDescription, tagLabel, tagParent, tagPath, tagVisibilityMethods inherited from class org.ametys.core.util.AmetysXSLTHelper
_getResourceBase64, absoluteUriPrefix, config, escapeJS, escapeURLforCSS, getAbsoluteUriPrefix, getUriPrefix, getValueFromJsonObject, getWorkspaceName, getWorkspacePrefix, groups, groups, groups, hasRight, isDeveloperMode, isPluginEnabled, pluginImageBase64, requestParameter, splitText, splitText, translate, translate, translate, uriPrefix, user, user, user, userByMail, versions, workspaceName, workspacePrefix, workspaceTheme, workspaceThemeURL
-
Constructor Details
-
AmetysXSLTHelper
public AmetysXSLTHelper()
-
-
Method Details
-
service
- Specified by:
servicein interfaceServiceable- Overrides:
servicein classAmetysXSLTHelper- Throws:
ServiceException
-
uriPrefix
Returns the current URI prefix, depending on the rendering context.- Returns:
- the current URI prefix.
-
siteUriPrefix
Returns the URI prefix corresponding to the current site, depending on the rendering context.- Returns:
- the URI prefix corresponding to the current site.
-
absoluteUriPrefix
Returns the absolute URI prefix, depending on the rendering context.- Returns:
- the absolute URI prefix.
-
absoluteSiteUriPrefix
Returns the absolute URI prefix corresponding to the current site, depending on the rendering context.- Returns:
- the absolute URI prefix corresponding to the current site.
-
absoluteSiteUriPrefix
Returns the absolute URI prefix corresponding to the given site, depending on the rendering context.- Parameters:
siteName- The site name. Can be null to get the current site.- Returns:
- the absolute URI prefix corresponding to the current site.
-
skin
Returns the current skin name.- Returns:
- the current skin name.
-
template
Returns the current template name.- Returns:
- the current template name.
-
lang
Returns the current sitemap name.- Returns:
- the current sitemap name.
-
lang
Returns the current sitemap name.- Parameters:
pageId- The page identifier to get sitemap on- Returns:
- the current sitemap name.
-
skinURL
Computes the URI for the given resource in the current site's skin.
If the URI is requested by the front-office, it will be absolutized.- Parameters:
path- the resource path.- Returns:
- the URI for the given resource.
-
skinImageURL
Computes the URI for the given image with a given heigth and width in the current site's skin.
If the URI is requested by the front-office, it will be absolutized.- Parameters:
path- the resource pathheight- the height for the resource to getwidth- the width for the resource to get- Returns:
- the URI of the given resource
-
skinImageBase64
Computes the base 64 representation of the image at the specified path.- Parameters:
skin- the skin to search inpath- the path of the image- Returns:
- the base 64-encoded image
- Throws:
IOException- if an error occurs while trying to get the file
-
skinImageBase64
Computes the base 64 representation of the image at the specified path.- Parameters:
path- the path of the image- Returns:
- the base 64-encoded image
- Throws:
IOException- if an error occurs while trying to get the file
-
skinBoundedImageURL
Computes the URI for the given image with a given heigth and width in the current site's skin.
If the URI is requested by the front-office, it will be absolutized.- Parameters:
path- the resource pathmaxHeight- the maximum height for the resource to getmaxWidth- the maximum width for the resource to get- Returns:
- the URI of the given resource
-
templateURL
Computes the URI for the given resource in the current template.
If the URI is requested by the front-office, it will be absolutized.- Parameters:
path- the resource path.- Returns:
- the URI for the given resource.
-
pluginResourceURL
Computes the URI for the given resource in the given plugin.
If the URI is requested by the front-office, it will be absolutized.- Parameters:
plugin- the plugin name.path- the resource path.- Returns:
- the URI for the given resource.
-
renderingContext
Returns the currentRenderingContext.- Returns:
- the current
RenderingContext.
-
zone
Return the name of the zone beeing handled- Parameters:
defaultValue- If no page is handled currently, this value is returned (can be null, empty...)- Returns:
- the name or the default value (so can be null or empty)
-
siteParameter
Return the value of a site parameter as a String.- Parameters:
parameter- the parameter ID.- Returns:
- the parameter value as a String.
-
siteParameter
Return the value of a site parameter as a String.- Parameters:
siteName- the site nameparameter- the parameter ID.- Returns:
- the parameter value as a String.
-
siteLanguages
Returns the sitemap' names handled by the current site- Returns:
- The available languages
-
siteLanguages
Returns the sitemap' names handled by a site- Parameters:
siteName- The site name- Returns:
- The available languages
-
serviceParameters
Get the service parameters as aNode.- Returns:
- the service parameters as a
Node.
-
serviceParameter
Returns the value of the given parameter for the current service, or the empty string if the parameter does not exist.- Parameters:
parameterPath- the parameter path.- Returns:
- the value of the given parameter for the current service.
-
serviceParameter
Returns the value of the given parameter for the current service, or the provided default value if the parameter does not exist.- Parameters:
parameterPath- the parameter path.defaultValue- the default value. Note that default value is ignored if the parameter is a composite parameter.- Returns:
- the value of the given parameter for the current service.
-
site
Returns the current site- Returns:
- the current site
-
site
Returns the current site- Parameters:
pageId- The identifier ot the page- Returns:
- the current site
-
sitemap
Deprecated.Use the version with depth argumentReturn the current sitemap as aNode. Invisible pages will not be displayed- Returns:
- the current sitemap.
-
sitemap
Return the current sitemap as aNode. Invisible pages will not be displayed- Parameters:
depth- The depth to get. 1 for root pages, -1 for infinite.- Returns:
- the current sitemap.
-
sitemap
Deprecated.Use the version with depth argumentReturn the current sitemap as aNode.- Parameters:
includeInvisiblePages- Should return child invisible pages- Returns:
- the current sitemap.
-
sitemap
Return the current sitemap as aNode.- Parameters:
depth- The depth to get. 1 for root pages, -1 for infinite.includeInvisiblePages- Should return child invisible pages- Returns:
- the current sitemap.
-
sitemap
Deprecated.Use the version with depth argumentReturn the subsitemap of the given page as aNode. Invisible child pages will not be returned;- Parameters:
pageId- The root page- Returns:
- The page as node.
-
sitemap
Return the subsitemap of the given page as aNode. Invisible child pages will not be returned;- Parameters:
pageId- The root pagedepth- The depth to get. 0 for the root page only, 1 for its child pages, -1 for infinite child pages.- Returns:
- The page as node.
-
sitemap
Return the subsitemap of the given page as aNode.- Parameters:
pageId- The root pageincludeInvisiblePages- Should return child invisible pages- Returns:
- The page as node.
-
sitemap
Return the subsitemap of the given page as aNode.- Parameters:
pageId- The root pagedepth- The depth to get. 0 for the root page only, 1 for its child pages, -1 for infinite child pages.includeInvisiblePages- Should return child invisible pages- Returns:
- The page as node.
-
breadcrumb
Computes the breadcrumb of the current page.- Returns:
- a NodeList containing all ancestor pages, rooted at the sitemap.
-
resourcesById
Returns a DOMElementrepresenting files and folder of the resources explorer, under theResourceCollectioncorresponding to the given id.- Parameters:
collectionId- the id of the rootResourceCollection.- Returns:
- an Element containing files and folders.
-
resourcesByPath
Returns a DOMElementrepresenting files and folder of the resources explorer, under theResourceCollectioncorresponding to the given path.
This path is intended to be relative to the current site's resource explorer.- Parameters:
path- the path of the rootResourceCollection, relative to the current site's resource explorer.- Returns:
- an Element containing files and folders or null if the specified resource does not exist.
-
resourceByPath
Returns a DOMElementrepresenting a single file of the resources explorer.
This path is intended to be relative to the current site's resource explorer.- Parameters:
path- the path of theResource, relative to the current site's resource explorer.- Returns:
- an Element containing a file or null if the specified resource does not exist.
-
skinResources
Returns a DOMElementrepresenting files and folder of a skin directory.
This path is intended to be relative to the current skin's 'resources' directory.- Parameters:
path- the path of the rootResourceCollection, relative to the current skin's 'resources' directory. Can be a file path to test its existance.- Returns:
- an Element containing files and folders. node name is 'collection' or 'resource' with an attribute 'name'. Return null if the path does not exits.
- Throws:
IOException- if an error occurred while listing files.
-
pageSiteName
Get the site name of a page.- Parameters:
pageId- The page id.- Returns:
- The name or empty if the page does not exist.
-
pageTitle
Get the title of a page.- Parameters:
sitename- the site name.lang- the sitemap name.path- the page path.- Returns:
- The name or empty if the meta or the page does not exist.
-
pageExists
Determines if page exists- Parameters:
sitename- the site name.lang- the sitemap name.path- the page path.- Returns:
falsethe page does not exist.
-
pageTitle
Get the title of a page.- Parameters:
pageId- The page id.- Returns:
- The name or empty if the meta or the page does not exist.
-
pageLongTitle
Get the long title of a page- Parameters:
sitename- the site namelang- the page's languagepath- the page's path- Returns:
- The name or empty if the meta or the page does not exist
-
pageLongTitle
Get the long title of a page- Parameters:
pageId- The page id- Returns:
- The name or empty if the meta or the page does not exist
-
pageType
Get the type of a page.- Parameters:
pageId- The page id.- Returns:
- The type or empty if the page does not exist.
-
pageUrl
Get the linked url of a page.- Parameters:
pageId- The page id.- Returns:
- The linked url or empty if the page does not exist or if it is not a LINK page
-
pageUrlType
Get the linked URL type of a page.- Parameters:
pageId- The page id.- Returns:
- The linked URL type or empty if the page does not exist or if it is not a LINK page
-
pageMetadata
Get the data of a page at the given path- Parameters:
sitename- the site namelang- the page's languagepath- the page's pathdataPath- The data path (use '/' as separator for composites and repeaters)- Returns:
- The value or empty if the data or the page does not exist
-
pageMetadata
Get the data of a page at the given path- Parameters:
pageId- The page iddataPath- The data path (use '/' as separator for composites and repeaters)- Returns:
- The value or empty if the data or the page does not exist
-
pageIsVisible
Returns true if the given page is visible into navigation elements- Parameters:
pageId- the page id.- Returns:
- true if the page is visible
-
pageIsVisible
Returns true if the given page is visible into navigation elements- Parameters:
sitename- the site namelang- the page's languagepath- the page's path- Returns:
- true if the page is visible
-
pageHasRestrictedAccess
Returns true if the given page has restricted access.- Parameters:
pageId- the page id.- Returns:
- true if the page exists and has restricted access.
-
hasReadAccessOnPage
Returns true if the current user has read access on the specified page- Parameters:
pageId- Page Id- Returns:
- true if the current user has read access on the specified page
-
hasRightOnPage
Returns true if the current user has the specified right on the current page- Parameters:
rightId- Right Id- Returns:
- true if the current user has the specified right on the current page
-
hasRightOnPage
Returns true if the current user has the specified right on the specified page- Parameters:
rightId- Right IdpageId- Page Id- Returns:
- true if the current user has the specified right on the specified page
-
pageHasRestrictedAccess
Returns true if the given page has restricted access.- Parameters:
sitename- the site namelang- the page's languagepath- the page's path- Returns:
- true if the page exists and has restricted access.
-
pagePath
Returns the path of the current page, relative to the sitemap's root.- Returns:
- the path of the current Page, or empty if there's no current page.
-
pagePath
Returns the path in sitemap of a page- Parameters:
pageId- The id of page- Returns:
- the path of the Page, or empty if not exists
-
pageId
Returns the id of the current page.- Returns:
- the id of the current Page, or empty if there's no current page.
-
zoneItemId
Returns the id of the current zone item id.- Returns:
- the id of the current zone item id, or empty if there's no current zone item.
-
zoneItemPosition
Get the position of the current zone item in its zone- Returns:
- the position of the current zone item or -1 if there's no current zone item.
-
isCacheable
Determines if the current zone item or (if there is no current zone item) the current page is cacheable This method is only valid for a page.- Returns:
- true if the current zone item or page is cacheable.
-
isEditionMode
Determines if we are in an edition mode- Returns:
- true if we are in edition mode
-
isCaptchaRequired
Determines if a captcha is required on forms of the current page- Returns:
- true if a captcha is required
-
isCaptchaRequired
Determines if a captcha is required on forms of the given ametys object- Parameters:
ametysObjectId- the ametys object id. Can be a sitemap element or a zone item.- Returns:
- true if a captcha is required
-
accessibleReferencedPages
Returns the id of pages referencing the content and for which the Front-office user can access- Parameters:
contentId- The content's id- Returns:
- The pages' id
-
referencedPages
Returns the id of pages referencing the content- Parameters:
contentId- The content's id- Returns:
- The pages' id
-
findContentsIdsByTag
Returns the ids of the contents- Parameters:
tag- The tag id- Returns:
- Array of contents ids
-
findContentsIdsByTag
Returns the ids of the contents- Parameters:
sitename- site name. '+' for any site, '*'/null for any site, including contents without site, '^' for only contents without sitelang- lang of the contentstag- The tag id- Returns:
- Array of contents ids
-
findPagesIdsByTag
Returns the ids of the pages tagged with the specified tag- Parameters:
sitename- The site idlang- The language codetag- The tag id- Returns:
- Array of pages ids
-
findPagesIdsByTag
public static NodeList findPagesIdsByTag(String sitename, String lang, String tag, boolean checkReadAccess) Returns the ids of the pages tagged with the specified tag- Parameters:
sitename- The site idlang- The language codetag- The tag idcheckReadAccess- true to return only pages with read access for current user- Returns:
- Array of pages ids
-
findPagesIdsByTag
Returns the ids of the pages tagged with the specified tag- Parameters:
tag- The tag id- Returns:
- Array of pages ids
-
findPagesIdsByTag
Returns the ids of the pages tagged with the specified tag- Parameters:
tag- The tag idcheckReadAccess- true to return only pages with read access for current user- Returns:
- Array of pages ids
-
userByMail
Return the given user by its email over all authorized population on current site- Parameters:
email- the concerned user's email- Returns:
- The informations about the given user
- Throws:
SAXException- If an error occurred while saxing the user
-
urlPreview
Get the preview of a url (title, description, image, favico)- Parameters:
url- the web link- Returns:
- the url preview
- Throws:
SAXException- If an error occurred while saxing
-
pagination
public static AmetysNodeList pagination(int nbPages, int currentPage, int nbFirstPages, int nbCentralPages, int nbLastPages) Generates a XML structure to help to creates a complex pagination.
Example: pagination(39, 19, 2, 5, 2) will return<gotofirstpage enabled="true">1</gotofirstpage> <gotopreviouspage enabled="true">18</gotopreviouspage> <page>1</page> <page>2</page> <separator/> <page>17</page> <page>18</page> <current>19</current> <page>20</page> <page>21</page> <separator/> <page>38</page> <page>39</page> <gotonextpage enabled="true">20</gotonextpage> <gotolastpage enabled="true">39</gotonextpage>
Example: pagination(5, 2, 2, 5, 2) will return<gotofirstpage enabled="true">1</gotofirstpage> <gotopreviouspage enabled="true">1</gotopreviouspage> <page>1</page> <current>2</page> <page>3</page> <page>4</page> <page>5</page> <space/> <space/> <space/> <space/> <gotonextpage enabled="true">3</gotonextpage> <gotolastpage enabled="true">5</gotonextpage>
- Parameters:
nbPages- The total number of pagescurrentPage- The currently displayed page (1 based)nbFirstPages- The max number of pages to display before the 1st separatornbCentralPages- The max number of pages to display around the current pagenbLastPages- The max number of pages to display after the 2nd separator- Returns:
- The xml described
-
templateParameters
Get the parameters' values of the current template- Returns:
- the values of template's parameters
-
templateParameter
Returns the value of the given parameter for the current page template, or the empty node if the parameter does not exist.- Parameters:
parameterPath- the parameter path.- Returns:
- the value of the given parameter for the current page template.
-
templateParameter
Returns the value of the given parameter for the given page template, or the empty node if the parameter does not exist.- Parameters:
pageId- the page idparameterPath- the parameter path.- Returns:
- the value of the given parameter for the given page template.
-
zoneParameters
Get the parameters of the current zone- Returns:
- the zone's parameters
-
zoneParameters
Get the parameters of a given zone- Parameters:
zoneName- The zone's name. Can be null or empty to get the current zone.- Returns:
- the zone's parameters
-
zoneParameter
Returns the value of the given parameter for the current page and current zone, or the empty node if the parameter does not exist.- Parameters:
parameterPath- the parameter path.- Returns:
- the value of the given parameter for the current page and current zone.
-
zoneParameter
Returns the value of the given parameter for the current page and given zone, or the empty node if the parameter does not exist.- Parameters:
zoneName- the zone nameparameterPath- the parameter path.- Returns:
- the value of the given parameter for the current page and given zone.
-
zoneParameter
Returns the value of the given parameter for the given page and given zone name, or the empty node if the parameter does not exist.- Parameters:
pageId- the page idzoneName- the zone nameparameterPath- the parameter path.- Returns:
- the value of the given parameter for the given page and given zone name.
-
zoneItemParameters
Get the parameters of the current zone item- Returns:
- the zone items's parameters
-
zoneItemParameters
Get the parameters of a given zone item- Parameters:
zoneItemId- The id of zone item. Can be null or empty to get the current zone item- Returns:
- the zone items's parameters
-
zoneItemParameter
Returns the value of the given parameter for the current zone item, or the empty node if the parameter does not exist.- Parameters:
parameterPath- the parameter path.- Returns:
- the value of the given parameter for the current zone item.
-
zoneItemParameter
Returns the value of the given parameter for the given zone item, or the empty node if the parameter does not exist.- Parameters:
zoneItemId- the zone item idparameterPath- the parameter path.- Returns:
- the value of the given parameter for the given zone item.
-
serviceViewParameters
Get the parameters of the current service- Returns:
- the service's parameters
-
serviceViewParameter
Returns the value of the given parameter for the current service, or the empty node if the parameter does not exist.- Parameters:
parameterPath- the parameter path.- Returns:
- the value of the given parameter for the current service.
-
contentViewParameters
Get the parameters of the current content- Returns:
- the content's parameters
-
contentViewParameter
Returns the value of the given parameter for the current content, or the empty node if the parameter does not exist.- Parameters:
parameterPath- the parameter path.- Returns:
- the value of the given parameter for the current content.
-