%ContentReference meta-HTML element

Syntax

%ContentReference(PORTAL_NAME, CREF_object, [URL_type])

Description

At runtime, %ContentReference is replaced with the absolute URL to the specified content reference.

Note:

If the specified content reference object does not exist or the current user does not have access to it, an error message is returned instead of the URL.

Note:

This function is valid for use in auxiliary style sheet files and auxiliary JavaScript files.

Parameters

Parameter Description

PORTAL_NAME

Specifies the portal.

CREF_object

Specifies the name of the content reference definition.

URL_type

Specifies the URL type:

  • psp — Specifies the absolute portal URL.

  • psc — Specifies the absolute content URL.

Note: psp is the default value.

Example

The following example demonstrates a usage of %ContentReference:

%ContentReference(EMPLOYEE, PT_PTFP_VIEW_GBL, psp)

The resulting absolute URL would be similar to the following:

http://myserver.example.com:8080/psp/QEDMO/EMPLOYEE/PT_LOCAL/c/PTFP_FEED_PUBLISHING.PTFP_VIEW.GBL