Modern Campus CMS XSLT Variables
Modern Campus CMS 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 Modern Campus CMS XSLT variables.
Variable | Description | Output |
---|---|---|
ou:action |
Assesses the current state of an Modern Campus CMS file. There are four possible states within Modern Campus CMS: preview ( For example, on a page which uses server side scripting to display a feed, within Modern Campus CMS 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 Modern Campus CMS user's profile.
|
|
ou:lastname |
Outputs the active last name listed in the Modern Campus CMS user's profile.
|
|
ou:username |
Outputs the active username listed in the Modern Campus CMS user's profile.
|
|
ou:email |
Outputs the active email address listed in the Modern Campus CMS user's profile.
|
|
ou:ftpdir |
Outputs the subdirectory of the FTP home where Modern Campus CMS 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 Modern Campus CMS.
|
|
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 Modern Campus CMS. In this case, the name of the primary production server shares the same name with the Modern Campus CMS 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.
|
|