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

 
Skip to Content

Page Tagging

Unique tags beginning with <ouc: are used in TMPL and PCF files, in the file source code, as part of the ouc namespace that OmniUpdate has defined specifically for OU Campus. By defining editable elements, these tags build the structure of the page in terms of what content users can edit, and where.

<ouc: TagsLink to this section

The following tags are unique to OU Campus: <ouc:div>, <ouc:properties>, <parameters>, <ouc:editor>, and <ouc:multiedit>. You may encounter legacy tags that look like <!-- com.omniupdate.div --> or <!-- ouc:div -->. These still work but are no longer encouraged for use.

Each tag defines a specific type of editable element:

  • <ouc:div>: region dividers, editable region content
    • <ouc:editor>: WYSIWYG editor type and any specific styling, used within <ouc:div>
    • <ouc:multiedit>: MultiEdit content, used within <ouc:div>
  • <ouc:properties>: standard page parameters (title, metadata, tags)
    • <parameters>: custom parameters, used within <ouc:properties>

When building a template, it is up to you to decide how to translate design elements into editable elements. Each editing type is best suited for a different kind of content.

  • Page properties work best for editing page layout and other options that affect the page structure or the page content as a whole.
  • MultiEdit should be used for editing specific page content that needs to conform to a certain structure.
  • Editable regions allow for freely editable content.

Other editable content options include:

  • Restricting editing to source code only. Insert wysiwyg="no" into the <ouc:editor node.
  • Automatically opening an asset or image gallery chooser when the edit button is clicked. Insert wysiwyg="gallery" into the <ouc:editor node.

Echo VariablesLink to this section

In TMPL files, placeholder tags called echo variables represent places where data in the PCF will be inserted.

<!--%echo var="title" -->

These are used in conjunction with form-based editing options, such as page properties. Each question or form element has a variable associated with it. When a user creates or edits a PCF, their input is inserted where the echo variable that matches the question's variable is.

In the following example, two echo variables are being used for the page title and description. These variables capture the form input data the editor adds for both of these properties respectively.

<ouc:properties label="metadata">
<title><!--%echo var="title" --></title>
<meta name="Description" content="<!--%echo var="description" -->" />
</ouc:properties>

The following is an example of what editors would see in the PCF source file after filling out the page title and description form fields. Notice the echo placeholder tags have been replaced.

<ouc:properties label="metadata">
<title>Clubs &amp; Organizations</title>
<meta name="Description" content="From sports to community service organizations, Gallena University offers the best in clubs &amp; organizations." />
</ouc:properties>

You can modify either the tags on a TMPL, to affect all files created from that TMPL going forward, or you can edit the tags on existing PCFs to just affect those pages. However, there is no way to edit a source file that automatically updates or affects all existing PCFs.