ssLink ssNodeLink ssWebLayoutUrl Using Server-Side Script Links

Link Formats 4-3 ■ siteId : the site ID of the web site referenced. Used only when the type is set to either nodelink or link. ■ dDocName : the dDocName of the content referenced. Used only when the type is set to either link or resource. Examples Before evaluation: [--wcmUrllink, switched_region_CDF--] [--wcmUrlnodelink, 30--] [--wcmUrlresource groupspublicdocumentsadacctmydocname.jpg--] These examples use single quotes for the parameters. Other examples may show double quotes. Both work, however, just as with the angle bracket and square bracket, there may be some instances where using one instead of the other will help prevent possible escaping problems. Evaluated by the server: a href=supportswitched_region a href=regionWest img src=groupspublicdocumentsadacctmydocname.jpg The first line shows a link to a content file referenced by the dDocName, the second is a link to a node referenced by the nodeId, and the third is a path to an image file on the Oracle Content Server. If a value for a link evaluates as bad, such as when it is linked to a resource that is no longer there, then the link evaluates as a token link. For more information, see Section 4.4.3, Token Links Generated From Returned Server-Side Links.

4.3.2 ssLink

The ssLink script link is used to create a server-side link to a data file, such as a native document. The target object is referenced by the dDocName. Parameters ■ dDocName : the dDocName of the managed item. If only one parameter is specified, it is assumed to be the dDocName. ■ 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. If you do wish to specify a targetSiteId, you must also specify the targetNodeId. Examples Before evaluation: [--ssLinkdDocName--] where the dDocName refers to a content file at supportswitched_region Evaluated by the server: a href=supportswitched_region 4-4 Oracle Fusion Middleware Technical Reference Guide for Site Studio

4.3.3 ssNodeLink

The ssNodeLink script link is used to create a server-side link to a web site section. Parameters ■ nodeId : a unique identifier for a node. ■ siteId : a unique identifier for the web site containing the node optional. Examples Before evaluation: [--ssNodeLink30--] where the supportCRM folder on the web site has a nodeId of 30 Evaluated by the server: a href=supportCRMindex.htm

4.3.4 ssWebLayoutUrl

The ssWebLayoutUrl is used to create a server-side link to a weblayout rendition of the document. This resourcerendition can be referenced by either the dDocName or the path to the resource. Parameters ■ dDocName : the dDocName of the content referenced. Examples Before evaluation: [--ssWebLayoutUrlgroupspublicdocumentsadacctmydocname.jpg--] Evaluated by the server: a href=groupspublicdocumentsadacctmydocname.jpg Note: If the link generated by ssLink is bad, then a tokenized link using ssLINK will be used in its place. This means that a broken link will not stop the page from being generated and delivered, but the broken link is still discoverable if clicked on. Note: If the link generated by ssNodeLink is bad, then a tokenized link using ssNODELINK will be used in its place. This means that a broken link will not stop the page from being generated and delivered, but the broken link is still discoverable if clicked on. Link Formats 4-5

4.4 Using Token Links