Modern Campus Catalog Emblem Modern Campus CMS Emblem Modern Campus Curriculum Emblem Modern Campus Involve Emblem Modern Campus Lifelong Learning Extended Education Emblem Modern Campus Message Emblem Modern Campus Navigate Emblem Modern Campus Schedule Emblem Modern Campus Virtual Tours & Maps Emblem Modern Campus Lifelong Learning Workfore and Community Emblem Site Menu Open Site Menu Close

Directory Variables

Directory variables modify the content inside a folder to change the behavior or display of files within a section. For example, set a directory variable to choose varying color schemes for different sections of your site that use the same template, like departments.

Set directory variables for your site and folder(s) by assigning a variable name and a variable value.

An example of directory variables.

Set directory variables for your site, as follows:

  1. Navigate to Setup > Sites.
  2. Click the More Actions menu More Actions menu for your site.
  3. Click Edit > Site Access.
  4. In the Site Access Settings box, locate Directory Variables and click +Add.
  5. Click the Create New Variable dropdown to select a system variable or enter text to name a custom variable.
    • To complete a custom variable, declare the variable in the folder's TMPL or XSL file.
  6. In the Value field, enter the appropriate input.
  7. Click Save.

Set directory variables for a folder, as follows:

  1. Navigate to Content > Pages and find the folder to associate with a directory variable.
  2. Click More Actions.
  3. Click Edit > Access.
  4. In the Access Settings box, locate Directory Variables and click +Add.
  5. Click the Create New Variable dropdown to select a system variable or enter text to name a custom variable.
    • To complete a custom variable, declare the variable in the TMPL or XSL for the folder.
  6. In the Value field, enter the appropriate input.
  7. Click Save.

Directory variables are applied recursively, so editing a directory variable for /academics, for example, applies that variable to any subfolders of /academics

A folder inherits directory variables from its parent folder(s). Inherited variables can't be edited, but they can be overwritten. To overwrite an inherited variable, from the Access Settings box add the same variable name and enter a different value.

Typically, directory variables are custom-made for each institution and their functionality may differ by implementation. Five directory variables are included with every installation of Modern Campus CMS, as follows:

Name
Value
Effect
Default Image Folder (formerly ox_ftp_image_root)

Path to the image folder, no trailing slash (for example /images/campus-life).

You can use the following types of paths:

  • /folder : the root folder for the site
  • empty : the directory you are currently in
  • ./folder : a folder in the directory you are currently in
  • ../images : a folder in a one directory up 
When users are inserting an image, they start in the specified folder by default when choosing the image.
   
Default Media Folder (formerly ox_ftp_media_root)

Path to the media folder, no trailing slash (for example /videos/promotional).

You can use the following types of paths:

  • /folder : the root folder for the site
  • empty : the directory you are currently in
  • ./folder : a folder in the directory you are currently in
  • ../images : a folder in a one directory up 
When users are inserting a video or other media, they start in the specified folder by default when choosing the media.
   
PublishAdd skip: and make a comma-separated list of file extensions (for example skip:xml,xsl,tcf,tmpl)Excludes any files with the the defined file extensions from being published when the folder containing them is published.
   
Ounav Levels

Add a number between 2 and 6 to allow navigation hierarchy, as follows:

level 1 (default)
     level 2
          level 3
               level 4
                    level 5
                         level 6

Create up to five levels of subnavigation, or nested navigation, to link to pages above or below the current item.
   
Ounav Output

Add the text "li"

or

Add the text "json"

Set your navigation to output using either <li> elements or JSON format.

Adjust these directory variables from the Access Settings box, no source code editing required.

By continuing to use this site, you agree to the storing of first- and third-party cookies on your device to enhance site navigation; analyze site, product, and service usage; and assist in our marketing and promotional efforts. Cookie Policy