and Customization Brian Laird, Implementation Manager OmniUpdate - - PowerPoint PPT Presentation

and customization
SMART_READER_LITE
LIVE PREVIEW

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


slide-1
SLIDE 1

Page Template Creation and Customization

Brian Laird, Implementation Manager OmniUpdate

slide-2
SLIDE 2

Agenda

  • Background:

– OU Campus as a System – What is a template?

  • Page ‘Tagging’ for Editable Regions
  • New Page Forms
slide-3
SLIDE 3

Agenda

  • Background: The Move to XML/XSL
  • What is a Publish Control File?
  • Advanced New Page/Section Forms
  • Best Practices
slide-4
SLIDE 4

Background

OU Campus as a System What is a Template?

slide-5
SLIDE 5

OU Campus as a System

  • Basic Setup: two separate servers

(Decoupled)

– Staging (OU Campus) – Production (Web Server)

  • OU Campus “Publishes” files to

the web server using an (S)FTP connection.

  • Published files are ‘stand-alone’

and do not require OU Campus to render.

slide-6
SLIDE 6

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

  • Interior Page
  • One Column
  • Two Column
  • Etc…

Design Templates

HTML Layouts

  • One Column
  • Two Column
  • Landing
  • Homepage
  • Etc…
slide-7
SLIDE 7

Page Tagging

Editable Regions in OU Campus

slide-8
SLIDE 8

Page Tagging: Overview

  • Defines editable elements on a page
  • Specialized Comment Tags or XML Nodes

– Original ‘comment’ format: <!-- com.omniupdate.div --> – New ‘comment’ format: <!-- ouc:div --> – New ‘node’ format: <ouc:div>

  • Unique to OU Campus
  • Tags are utilized in “Preview” and especially “Edit” page states
slide-9
SLIDE 9

Properties

  • Ex. <ouc:properties>…</ouc:properties>
  • Defines editable elements outside traditional content areas

– Examples:

  • Title (<title>Page Title</title>)
  • Metadata
  • Page Layout Options (PCF only)
  • Form-like Data Entry (PCF only)
  • Availability of properties can be restricted by group
  • Extends the same page to be used for different uses
slide-10
SLIDE 10

Region Dividers

  • Ex.

<ouc:div label="content" group="Admins" button- text=“Content">…</ouc:div>

  • Must close at the end of the region
  • Multiple editable regions can be associated with a page, but

“label” attribute must be unique

slide-11
SLIDE 11

Region Dividers

  • Must include the following attributes:

– Label – Group – ‘Button-text’ identifier or ‘Path’ for include files

  • Use “Path” attribute to define the path to a local file in

‘staging’, to simulate a server-side include

slide-12
SLIDE 12

Editors

  • Source Code Editor Example:

<ouc:div …><ouc:editor wysiwyg="no" /> Code … </ouc:div>

  • Must self-close (if node)
  • Must be placed at the start of an editable region
  • Two Types of WYSIWYG Editors (choice is set by

administrators): – Classic – JustEdit

slide-13
SLIDE 13

Editors

  • Important Attributes:

– 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

slide-14
SLIDE 14

Side Topic: ‘Styles Dropdown’

  • Text file that is used for adding ‘classes’ to

HTML objects in the WYSIWYG

  • “block” setting will apply the class to the

parent ‘block-level’ tag (ex. Paragraph, Divider (div), Image, etc.)

  • Non-”block” (leaving blank) will default the

class to being “in-line”, which means the WYSIWYG will wrap highlighted content in a SPAN with selected class

slide-15
SLIDE 15

Side Topic: ‘Styles Dropdown’

  • Format:

.class[TAB]Friendly Name[TAB]block(optional)

  • Examples:

.blue Blue Title block .highlight Text Highlight

  • Example Output (‘Highlighted’ was

selected):

<h1 class="blue">Blue Title, <span class="highlight">Highlighted</span></h1>

slide-16
SLIDE 16

MultiEdit Regions

  • Text Field Example:

<ouc:div label="department" group="Everyone" button="hide"><ouc:multiedit type="text" prompt="Department" alt="Type in the department name." />Mathematics</ouc:div>

  • Allows for form-like content entry
  • For more information, see:

Building Directories and Templates with MultiEdit

– by Bradley Prasuhn – Today, 3:00 - 4:30pm (Emerald Room)

slide-17
SLIDE 17

Additional Tags

  • Direct Edit Button:

<!-- ouc:ob --><-- /ouc:ob -->

  • Full-page Source Editor Button:

<!-- ouc:efp --><-- /ouc:efp -->

  • DateTime Stamp:

<!-- ouc:date --><-- /ouc:date -->

slide-18
SLIDE 18

Hands-On:

Tagging an HTML Page

slide-19
SLIDE 19

New Page Forms

Creating New Pages in OU Campus

slide-20
SLIDE 20

Template Structure

.TCF .TMPL .TMPL .TMPL

slide-21
SLIDE 21

Template Control File (TCF)

slide-22
SLIDE 22

Terminology

TCF = Template Control File – Can contain 4 lists:

  • Variable List – Data Entry
  • Directory List – Folder Creation
  • Template List – File Creation
  • Navigation List – Navigation Updates
slide-23
SLIDE 23

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”

slide-24
SLIDE 24

Terminology

TMPL = Template File – Used to create *any* file type – Can use ‘echo’ variable statements to collect data entered in TCF

  • Ex. <!--%echo var="title" -->

– Fill out with as much or little starting data (or content) as desired. – Can only be edited in “Source Editor”

slide-25
SLIDE 25

Hands-On:

Creating New HTML Pages

slide-26
SLIDE 26

Background

The Move to XML / XSL

slide-27
SLIDE 27

Advantages of XML / XSL

  • Separates ‘Content’ from ‘Design’
  • XSL logic (scripting) can replace most

Server Side coding

  • Allows for adjustable layouts and optional

features

slide-28
SLIDE 28

Advantages of XML / XSL

  • Required for LDP Galleries, LDP Forms,

and PDF output

  • Can be used to create multiple output

‘products’ for each page

slide-29
SLIDE 29

XML

eXtensible Markup Language

– In OU Campus PCF and XSL = XML Syntax – Adheres to strict structure – Contains custom elements

slide-30
SLIDE 30

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

slide-31
SLIDE 31

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

  • r server-side code
slide-32
SLIDE 32

XSL

– Utilizes XPath syntax; ‘directions’ to content in PCF, and utility functions (like ‘string-length’) – Are not published – changes are immediately available on staging

  • Back up files before editing!
slide-33
SLIDE 33

What is a Publish Control File?

Converting to XML/XSL

slide-34
SLIDE 34

PCF

slide-35
SLIDE 35

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)

slide-36
SLIDE 36

Terminology

– Contains parameters for Page Properties and metadata – Contains tagging for:

  • Editable regions
  • Custom CSS/instructions for WYSIWYG Editor
  • MultiEdit tagging
slide-37
SLIDE 37

PCF Transformation Process

(HTML, PHP, ASP...) CONTENT STRUCTURE

.PCF XSL

slide-38
SLIDE 38

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" ?>

slide-39
SLIDE 39

Doctype Definition

  • Called DTD
  • Defines the root element
  • Provides the entities and markup

<!DOCTYPE document SYSTEM "http://commons.omniupdate.com/dtd/standard.dtd">

slide-40
SLIDE 40

Additional Parameters

  • Example:

<parameter name="heading" type="text" prompt="Page Heading">Admissions</parameter>

  • Must be placed inside “ouc:properties” tags
  • Form-based data entry, typically used for layout settings

– Types: Text, Filechooser, Select, Radio, Checkboxes, DateTime Picker

slide-41
SLIDE 41

Additional Parameters

  • Availability of properties can be restricted by group
  • Important Attributes:

– “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’)

slide-42
SLIDE 42

Hands-On:

Building a PCF Page

slide-43
SLIDE 43

New Page & Section Forms

Templates

slide-44
SLIDE 44

Template Structure

New Page Components

.TCF

.TMPL .PCF .XML

XSL

.XML .TMPL .TMPL .INC .INC

XSL XSL

slide-45
SLIDE 45

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

slide-46
SLIDE 46

Hands-On:

Creating New PCF Pages, Creating New Sections

slide-47
SLIDE 47

Best Practices and Reminders

  • Repurpose content when possible
  • Share templates across sites when possible
  • Use Template Groups to limit where certain

files can be created, and to help reduce template ‘clutter’

  • Follow clear naming conventions and use

hyphens

slide-48
SLIDE 48

Best Practices and Reminders

  • Create contextual TCF image icons
  • Utilize the Styles drop-down
  • Plan out access settings and binary management
  • Encourage and use the WYSIWYG Editor – It

“repairs” HTML errors

  • Always close tags/nodes
  • For more in-depth information:

http://support.omniupdate.com/oucampus10/site- development/templating-framework

slide-49
SLIDE 49

Q & A

slide-50
SLIDE 50

Thank You!

Don’t forget to take our survey

  • utc16.com/surveys