ssGetNodeLabel ssGetNodeLabelPath ssGetAllSites ssLink ssNodeLink

Idoc Script Extensions 9-17 Code Example --ssGetServerRelativeUrlsiteId , nodeId--

9.33 ssGetServerRelativePath

Description This script extension can be used to generate a server relative URL to the primary layout for a specified node, excluding the trailing urlPageName usually index.htm. Parameters ■ siteId : The unique identifier for the web site. ■ nodeId : A unique identifier for a node. Returns A full friendly URL relative to the server, not including the page name. Code Example --ssGetServerRelativePathsiteId , nodeId--

9.34 ssGetUrlPageName

This script extension can be used to obtain the urlPageName for a specified node. Parameters ■ siteId : The unique identifier for the web site. ■ nodeId : A unique identifier for a node. Returns The urlPageName of the node. Usually this is index.htm. Code Example --ssGetUrlPageNamesiteId--

9.35 ssGetNodeLabel

Description This script extension can be used to obtain the label for a specified node. Parameters ■ siteId : The unique identifier for the web site. ■ nodeId : A unique identifier for a node. Returns The label of the specified node. Code Example --ssGetNodeLabelsiteId , nodeId-- 9-18 Oracle Fusion Middleware Technical Reference Guide for Site Studio

9.36 ssGetNodeLabelPath

Description This script extension can be used to obtain a separated string relative to the root of the web site that can be used for a GUI label for example, productsserversweb server. Parameters ■ siteId : The unique identifier for the web site. ■ nodeId : A unique identifier for a node. Returns The script returns a string separated by of the folders in the stated node in the stated web site. Code Example --ssGetNodeLabelPathsiteId , nodeId--

9.37 ssGetAllSites

Description This script extension can be used to generate a ResultSet containing a list of all available web sites. Parameters ■ resultSetName : the name for the generated ResultSet. Returns The list of all available web sites on the server is returned in a ResultSet. Code Example --ssGetServerRelativePathresultSetName--

9.38 ssLink

Description This script extension is used to generate a path-based URL to a named document. This is deprecated in preference of wcmUrl see Section 9.13, wcmUrl . For more information, see Section 4.3, Using Server-Side Script Links. Parameters ■ dDocName : the dDocName of the managed item. ■ targetNodeId : a unique identifier for a node to use as the target context optional. ■ targetSiteId : the unique identifier for the web site to use as the target context optional. Idoc Script Extensions 9-19 Returns A string which is the friendly link to a specific piece of content. Code Example --ssLinkdDocName , targetSiteId-- --ssLinkdDocName-- --ssLinkdDocName , targetNodeId , targetSiteId--

9.39 ssNodeLink

Description This script extension is used to generate a path-based URL to a specified node. This is deprecated in preference of wcmUrl see Section 9.13, wcmUrl . For more information, see Section 4.3, Using Server-Side Script Links. Parameters ■ nodeId : A unique identifier for a node. ■ siteId : A unique identifier for the web site containing the node optional. Returns The friendly link to the primary or landing page of a node. Code Example --ssNodeLinknodeId , siteId-- --ssNodeLinknodeId--

9.40 ssWeblayoutUrl