-
Notifications
You must be signed in to change notification settings - Fork 1
/
sample-post-template.pcf
108 lines (97 loc) · 7.68 KB
/
sample-post-template.pcf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
<?xml version="1.0" encoding="UTF-8"?>
<?pcf-stylesheet site="anchorage" path="/_ouresources/xsl/blog/post.xsl" title="Blog Post" extension="cshtml"?>
<?pcf-stylesheet site="anchorage" path="/_ouresources/xsl/blog/post-xml.xsl" title="Blog XML" extension=".blog.xml" alternate="yes" ?>
<!DOCTYPE document SYSTEM "http://commons.omniupdate.com/dtd/standard.dtd">
<document xmlns:ouc="http://omniupdate.com/XSL/Variables">
<!-- Best practice is to have a couple common empty nodes in case a page needs to have page-unique code. These are only editable in source and therefore admins. -->
<headcode></headcode> <!-- Output just before closing head tag. -->
<bodycode></bodycode> <!-- Output just after opening body tag. -->
<footcode></footcode> <!-- Output just before closing body tag. -->
<parameter name="pagetype">blog-main</parameter>
<!-- General page properties. Defines user options for page layout. -->
<ouc:properties label="config">
<!-- Right Column Content -->
<parameter section="Right Column Options" name="regions" type="checkbox" prompt="Right Column" alt="Check the boxes to enable the right column content regions." group="Everyone">
<option value="nav" selected="false">Main Interior Page Navigation</option>
<option value="tablist" selected="false">Tab List</option>
<option value="catlist" selected="false">Category List</option>
<option value="region" selected="true">Editable Region</option>
</parameter>
<parameter name="tablist1" type="select" prompt="Tab List Category 1" alt="Select the category you would like displayed for the first tab." group="Everyone">
<option value="News" selected="true">News</option>
<option value="Events" selected="false">Events</option>
</parameter>
<parameter name="tablist2" type="select" prompt="Tab List Category 2" alt="Select the category you would like displayed for the second tab." group="Everyone">
<option value="News" selected="false">News</option>
<option value="Events" selected="true">Events</option>
</parameter>
<parameter name="tablist-limit" group="Everyone" prompt="Posts per Tab" alt="Determines the amount of posts to display in tablist.">3</parameter>
<!-- Blog Options -->
<parameter section="Blog Options" name="disqus-enable" type="select" prompt="Enable Disqus Comments" alt="Turns on/off the disqus comments displayed at the bottom of the post. These comments should only be turned on when the blog post is ready to go live." group="Admin">
<option value="true" selected="false">On</option>
<option value="false" selected="true">Off</option>
</parameter>
<parameter name="date-time" type="datetime" format="iso" prompt="Post Date" alt="Date for the article posted." group="Everyone">{{post-date}}</parameter>
<!-- Amazing Quotes -->
<parameter name="quote-toggle" group="Everyone" prompt="Include" alt="Include Amazing Stories Quote" type="radio" section="Amazing Stories Quote">
<option value="show" selected="false">Show</option>
<option value="hide" selected="true">Hide</option>
</parameter>
<!-- Photo Gallery Properties -->
<parameter section="LDP Gallery" name="galleryType" type="select" group="Everyone" prompt="Gallery Type" alt="Select the output type for gallery assets on this page.">
<option value="bxSlider" selected="false">BX Slider</option>
<option value="FlexSlider" selected="false">Flex Slider</option>
<option value="MagnificPopUp" selected="false">Magnific PopUp</option>
<option value="PrettyPhoto" selected="true">Pretty Photo</option>
<option value="FancyBox" selected="false">Fancy Box</option>
</parameter>
</ouc:properties>
<!-- Meta page properites. Defines the meta elements that are placed in the head of the HTML document. -->
<ouc:properties label="metadata">
<title>{{post-title}}</title>
<meta name="Description" content="{{post-excerpt}}" />
</ouc:properties>
<post-info>
<ouc:div label="post-title" group="Everyone" button="hide">
<ouc:multiedit type="text" prompt="Post Title" alt="Title of the post; will show up on the main content region as well as the listing page. To add a line break, enter '//'." section="General Blog Post Information"/>{{post-title}}
</ouc:div>
<ouc:div label="post-author" group="Everyone" button="hide">
<ouc:multiedit type="text" prompt="Post Author" alt="Author of the post. Will display below the title and on the listing page."/>{{post-author}}
</ouc:div>
<ouc:div label="post-author-title" group="Everyone" button="hide">
<ouc:multiedit type="text" prompt="Author Title" alt="Title of the author."/>
</ouc:div>
<ouc:div label="post-email" group="Everyone" button="hide">
<ouc:multiedit type="text" prompt="Author Email" alt="Email address of the author. If not defined this will use the current OU Campus user email."/>{{post-author-email}}
</ouc:div>
<ouc:div label="post-tags" group="Everyone" button="hide">
<ouc:multiedit type="text" prompt="Post Tags" alt="Define the tags/categories that defines the content of the post, separated by commas. Example: Lorem ipsum, dolor sit amet"/>{{post-tags}}
</ouc:div>
<ouc:div label="post-display" group="Everyone" button="hide">
<ouc:multiedit type="radio" prompt="Display Post" alt="Determines whether to display this post on the Listing Page feeds." options="Display:true;Do Not Display:false;" section="Listing Page Post Information"/>true
</ouc:div>
<ouc:div label="post-description" group="Everyone" button="hide">
<ouc:multiedit type="textarea" prompt="Post Description" alt="Description of the post that will show up in the listing page." rows="8"/>{{post-excerpt}}
</ouc:div>
<ouc:div label="post-img" group="Everyone" button="hide">
<ouc:multiedit type="radio" prompt="Use Image" alt="Determines whether Listing Pages will use an image for this post." options="Image:img;None:none;"/>{{post-image-display}}
</ouc:div>
<ouc:div label="post-image" group="Everyone" button="hide">
<ouc:multiedit type="image" prompt="Post Image" alt="Image that will displayed next to the post on the Listing Pages."/>
<img src="{{post-image-src}}" alt="{{post-image-alt}}" />
</ouc:div>
</post-info>
<!-- Editable region. An ouc:div defines an editable region so a user can edit content within the WYSIWYG editor. Every ouc:div must have a unique label.
The ouc:editor defines the CSS styling in the WYSIWYG editor for this editable region.
More information here: http://support.omniupdate.com/oucampus9/development/templating/page-tagging/tagging-reference.html#editable -->
<ouc:div label="maincontent" group="Everyone" button-text="Main Content">
<ouc:editor csspath="/_resources/ou/editor/content.css" cssmenu="/_resources/ou/editor/styles.txt" wysiwyg-class="maincontent layout-1" width="1020" />
{{post-body}}
</ouc:div>
<ouc:div label="panel" group="Everyone" button-text="Panel Region">
<ouc:editor csspath="/_resources/ou/editor/content.css" cssmenu="/_resources/ou/editor/styles.txt" wysiwyg-class="rightcontent quicklinks" width="1020" />
</ouc:div>
<ouc:div label="right-content" group="Everyone" button-text="Sidebar Content">
<ouc:editor csspath="/_resources/ou/editor/content.css" cssmenu="/_resources/ou/editor/styles.txt" width="1020" wysiwyg-class="rightcontent"/>
</ouc:div>
</document>