Page Template Creation and Customization
Brian Laird, Implementation Manager OmniUpdate
and Customization Brian Laird, Implementation Manager OmniUpdate - - PowerPoint PPT Presentation
Page Template Creation and Customization Brian Laird, Implementation Manager OmniUpdate Agenda Background: OU Campus as a System What is a template? Page Tagging for Editable Regions New Page Forms Agenda
Page Template Creation and Customization
Brian Laird, Implementation Manager OmniUpdate
Agenda
– OU Campus as a System – What is a template?
Agenda
Background
OU Campus as a System What is a Template?
OU Campus as a System
(Decoupled)
– Staging (OU Campus) – Production (Web Server)
the web server using an (S)FTP connection.
and do not require OU Campus to render.
What is a Template?
XSL Templates New Page Templates
Form Components: Image (GIF/PNG) TCF – Form for creating a new page/section TMPL – File template used for page creation PCF + XSL
Design Templates
HTML Layouts
Page Tagging
Editable Regions in OU Campus
Page Tagging: Overview
– Original ‘comment’ format: <!-- com.omniupdate.div --> – New ‘comment’ format: <!-- ouc:div --> – New ‘node’ format: <ouc:div>
Properties
– Examples:
Region Dividers
<ouc:div label="content" group="Admins" button- text=“Content">…</ouc:div>
“label” attribute must be unique
Region Dividers
– Label – Group – ‘Button-text’ identifier or ‘Path’ for include files
‘staging’, to simulate a server-side include
Editors
<ouc:div …><ouc:editor wysiwyg="no" /> Code … </ouc:div>
administrators): – Classic – JustEdit
Editors
– wysiwyg = yes (default) | no (Source Editor) | asset (Asset Chooser) – css-path = link to local CSS file to style editor contents – css-menu = link to local text file to populate ‘styles dropdown’ – wysiwyg-class = adds a CSS class inside ‘classic’ editor for styling purposes – Additional attributes used depending on editor type
Side Topic: ‘Styles Dropdown’
HTML objects in the WYSIWYG
parent ‘block-level’ tag (ex. Paragraph, Divider (div), Image, etc.)
class to being “in-line”, which means the WYSIWYG will wrap highlighted content in a SPAN with selected class
Side Topic: ‘Styles Dropdown’
.class[TAB]Friendly Name[TAB]block(optional)
.blue Blue Title block .highlight Text Highlight
selected):
<h1 class="blue">Blue Title, <span class="highlight">Highlighted</span></h1>
MultiEdit Regions
<ouc:div label="department" group="Everyone" button="hide"><ouc:multiedit type="text" prompt="Department" alt="Type in the department name." />Mathematics</ouc:div>
Building Directories and Templates with MultiEdit
– by Bradley Prasuhn – Today, 3:00 - 4:30pm (Emerald Room)
Additional Tags
<!-- ouc:ob --><-- /ouc:ob -->
<!-- ouc:efp --><-- /ouc:efp -->
<!-- ouc:date --><-- /ouc:date -->
Hands-On:
Tagging an HTML Page
New Page Forms
Creating New Pages in OU Campus
Template Structure
.TCF .TMPL .TMPL .TMPL
Template Control File (TCF)
Terminology
TCF = Template Control File – Can contain 4 lists:
Terminology
– May use multiple TMPLs to create multiple files – Multiple TCFs can reference a single TMPL – May be used to pass Access Settings – Can create RSS items
– Can only be edited in “Source Editor”
Terminology
TMPL = Template File – Used to create *any* file type – Can use ‘echo’ variable statements to collect data entered in TCF
– Fill out with as much or little starting data (or content) as desired. – Can only be edited in “Source Editor”
Hands-On:
Creating New HTML Pages
Background
The Move to XML / XSL
Advantages of XML / XSL
Server Side coding
features
Advantages of XML / XSL
and PDF output
‘products’ for each page
XML
eXtensible Markup Language
– In OU Campus PCF and XSL = XML Syntax – Adheres to strict structure – Contains custom elements
XML
Main requirements
– Requires a root element – All tags must properly close – Tags and attributes are case sensitive and must be properly quoted – Elements must be properly nested
XSL
eXtensible Stylesheet Language
– Transforms data into styled page – Must be formatted in XML structure – Will contain HTML structure, links to CSS, and client-side
XSL
– Utilizes XPath syntax; ‘directions’ to content in PCF, and utility functions (like ‘string-length’) – Are not published – changes are immediately available on staging
What is a Publish Control File?
Converting to XML/XSL
PCF
Terminology
PCF = Publish Control File – An XML file, specialized for OU Campus – Arbitrary extension name for pages in Staging Server – Contains PCF stylesheet declaration(s) (XSL declaration)
Terminology
– Contains parameters for Page Properties and metadata – Contains tagging for:
PCF Transformation Process
(HTML, PHP, ASP...) CONTENT STRUCTURE
.PCF XSL
Prolog
XML declaration – What version – Encoding PCF-stylesheet declaration – What XSL is transforming data – What extension should be appended
<?xml version="1.0" encoding="UTF-8"?> <?pcf-stylesheet path="/_resources/xsl/interior.xsl" extension="html" title="Web" ?>
Doctype Definition
<!DOCTYPE document SYSTEM "http://commons.omniupdate.com/dtd/standard.dtd">
Additional Parameters
<parameter name="heading" type="text" prompt="Page Heading">Admissions</parameter>
– Types: Text, Filechooser, Select, Radio, Checkboxes, DateTime Picker
Additional Parameters
– “name” - must be unique – “prompt” - is the ‘label’ – “alt” - is the help-text description – “type” - (self-explanatory) defaults to ‘text’ – “group” - defines group access to see field in ‘properties’ (defaults to ‘None’)
Hands-On:
Building a PCF Page
New Page & Section Forms
Templates
Template Structure
New Page Components
.TCF
.TMPL .PCF .XML
XSL
.XML .TMPL .TMPL .INC .INC
XSL XSL
Template Inheritance
Skin: In OMNI-INF Shared across all accounts and sites Account: In OMNI-INF Shared across all sites Site: In OMNI-INF or Directory in Pages view
Hands-On:
Creating New PCF Pages, Creating New Sections
Best Practices and Reminders
files can be created, and to help reduce template ‘clutter’
hyphens
Best Practices and Reminders
“repairs” HTML errors
http://support.omniupdate.com/oucampus10/site- development/templating-framework
Thank You!
Don’t forget to take our survey