OU Campus XSLT Variables
OU Campus implementations have a number of predefined XSLT variables to streamline the XSL development process. These variables are called upon throughout standard implementation XSL files and can be utilized in user-generated XSLT code. The following is a selection of commonly used OU Campus XSLT variables.
Variable | Description | Output |
---|---|---|
ou:action |
Assesses the current state of an OU Campus file. There are four possible states within OU Campus: preview ( For example, on a page which uses server side scripting to display a feed, within OU Campus you could fetch the output of the script when in preview, edit, or compare, but include the actual PHP call code block when the page is published. |
|
ou:dirname |
Outputs the current directory name.
|
|
ou:feed |
Outputs the RSS feed from the page access settings for a particular file.
|
|
ou:filename |
Outputs the name of the publish product of the current file found on the production server.
|
|
ou:firstname |
Outputs the active first name listed in the OU Campus user's profile.
|
|
ou:lastname |
Outputs the active last name listed in the OU Campus user's profile.
|
|
ou:username |
Outputs the active username listed in the OU Campus user's profile.
|
|
ou:email |
Outputs the active email address listed in the OU Campus user's profile.
|
|
ou:ftpdir |
Outputs the subdirectory of the FTP home where OU Campus users are placed by default.
|
|
ou:ftphome |
Outputs the FTP home defined in the site settings.
|
|
ou:ftproot |
Outputs the FTP root defined in the site settings.
|
|
ou:httproot |
Outputs the HTTP root defined in the site settings.
|
|
ou:created |
Outputs the timestamp of when the file was created.
|
|
ou:modified |
Outputs the timestamp of when the file was last modified.
|
|
ou:root |
Outputs the path from the system root in OU Campus.
|
|
ou:servername |
Outputs the domain of the host server.
|
|
ou:site |
Outputs the name of the current site.
|
|
ou:stagingpath |
Outputs the root-relative path to a file on the staging server.
|
|
ou:path |
Outputs the root relative path to the publish product on the production server.
|
|
ou:target |
Outputs the site name of the production server where the published page is located. This variable is used when there are multiple publish targets set up within OU Campus. In this case, the name of the primary production server shares the same name with the OU Campus staging server.
|
|
ou:uuid |
Outputs the unique identifier for the current file. This unique identifier doesn't change when a file is moved or renamed.
|
|