GenerateExternalRelativeURL
Mon 01 January 2018Syntax
GenerateExternalRelativeURL(PORTAL.portalname, NODE.nodename, EncodedURL)
Description
Use the GenerateExternalRelativeURL function to create a URL string that represents a relative reference the specified external content (URL). The relative reference is suitable for use on any page that itself has the simple URL format and which is served by the portal servlet (psp).
If you want to generate an absolute URL, use the GenerateExternalPortalURL function.
Parameters
Field or Control |
Definition |
---|---|
PortalName |
Specify the name of the portal used for this request, prefixed with the reserved word PORTAL . You can also use a string, such as %Portal, for this value. |
NodeName |
Specify the name of the node that contains the content, prefixed with the reserved word NODE . You can also use a string, such as %Node, for this value. |
EncodedURL |
Specify the URL to be used for this content. |
Returns
A string of the following format is returned:
../../../Portal/node/e/encodedURL
This function returns a Null string if you specify an invalid portal or node.