1 | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
|
---|
2 | lang="en"
|
---|
3 | metal:use-macro="here/prefs_main_template/macros/master"
|
---|
4 | i18n:domain="SimpleBlog">
|
---|
5 |
|
---|
6 | <metal:block fill-slot="top_slot"
|
---|
7 | tal:define="dummy python:request.set('disable_border',1)" />
|
---|
8 |
|
---|
9 | <body>
|
---|
10 |
|
---|
11 | <div metal:fill-slot="prefs_configlet_main"
|
---|
12 | tal:define="errors python:request.get('errors', {})">
|
---|
13 | <h1>SimpleBlog Setup</h1>
|
---|
14 |
|
---|
15 | <p>
|
---|
16 | Portal-wide settings.
|
---|
17 | </p>
|
---|
18 |
|
---|
19 | <form name="simpleblogForm" method="post"
|
---|
20 | name="pref_simpleblog_set"
|
---|
21 | tal:define="errors options/state/getErrors;props python:here.portal_properties;"
|
---|
22 | tal:attributes="action template/id">
|
---|
23 | <fieldset>
|
---|
24 | <legend>SimpleBlog details</legend>
|
---|
25 | <div class="field"
|
---|
26 | tal:define="error errors/publishedState | nothing;
|
---|
27 | pstate python:here.simpleblog_tool.getPublishedState();
|
---|
28 | allStates python:here.simpleblog_tool.getEntryWorkflowStates(here);
|
---|
29 | reqState request/publishedState|nothing;
|
---|
30 | cursel python:test(reqState,reqState,pstate)"
|
---|
31 | tal:attributes="class python:test(error, 'field error', 'field')">
|
---|
32 |
|
---|
33 | <label>Workflow 'published' state name</label>
|
---|
34 | <div class="formHelp">
|
---|
35 | Workflow state that is used to filter Blog Entries on the Blog front page. Usually 'published'. <br/>
|
---|
36 | Check the workflow for the BlogEntry portal type.
|
---|
37 | </div>
|
---|
38 | <div tal:content="error">Validation error output</div>
|
---|
39 | <select name="publishedState"
|
---|
40 | size="1"
|
---|
41 | tal:attributes="tabindex tabindex/next">
|
---|
42 | <tal:states tal:repeat="st allStates">
|
---|
43 | <option value="1"
|
---|
44 | tal:attributes="selected python:test(st==cursel ,'select', None);
|
---|
45 | value st"
|
---|
46 | tal:content="st">
|
---|
47 | state
|
---|
48 | </option>
|
---|
49 | </tal:states>
|
---|
50 | </select>
|
---|
51 | </div>
|
---|
52 | <div class="field"
|
---|
53 | tal:define="submitted request/sub|python:0;
|
---|
54 | checkit python:test(submitted,request.has_key('createPortletOnBlogCreation'),here.simpleblog_tool.getCreatePortletOnBlogCreation())">
|
---|
55 | <div class="formHelp">
|
---|
56 | SimpleBlog can create a portlet in the Blog's folder that displays the top most recent entries
|
---|
57 | and a list of categories you can search for.
|
---|
58 | </div>
|
---|
59 | <input type="checkbox"
|
---|
60 | class="noborder"
|
---|
61 | id="createPortletOnBlogCreation"
|
---|
62 | name="createPortletOnBlogCreation"
|
---|
63 | tal:attributes="checked python:test(checkit, 'checked', None)" />
|
---|
64 | <label for="createPortletOnBlogCreation">
|
---|
65 | Create a local portlet for newly created Blogs
|
---|
66 | </label>
|
---|
67 | </div>
|
---|
68 |
|
---|
69 | <div class="field"
|
---|
70 | tal:define="error errors/maxItemsInPortlet | nothing;
|
---|
71 | items request/maxItemsInPortlet| python:here.simpleblog_tool.getMaxItemsInPortlet()"
|
---|
72 | tal:attributes="class python:test(error, 'field error', 'field')">
|
---|
73 | <label>Maximum number of most recent Entries shown in the portlet</label>
|
---|
74 | <div tal:content="error">Validation error output</div>
|
---|
75 | <input name="maxItemsInPortlet" size="2" value="" tabindex=""
|
---|
76 | tal:attributes="value items;tabindex tabindex/next;" />
|
---|
77 | </div>
|
---|
78 |
|
---|
79 | <div class="field" tal:define="cats python:here.simpleblog_tool.getGlobalCategories();
|
---|
80 | reqCats request/globalCategories | nothing;
|
---|
81 | error errors/globalCategories | nothing">
|
---|
82 | <label>Global categories</label>
|
---|
83 | <div class="formHelp">
|
---|
84 | Global categories are available to all Blog Entries in the site. One category per line.
|
---|
85 | </div>
|
---|
86 | <textarea cols="30" rows="6" name="globalCategories" tabindex="" tal:attributes="tabindex tabindex/next"><span tal:condition="not: reqCats" tal:replace="python:'\n'.join(cats)"/><span tal:condition="reqCats" tal:replace="reqCats"/></textarea>
|
---|
87 | </div>
|
---|
88 | <div class="field" tal:define="format request/showStandardButtons | python:here.simpleblog_tool.getShowStandardButtons()">
|
---|
89 | <label>Actions format</label>
|
---|
90 | <div class="formHelp">
|
---|
91 | Choose how the actions below each Entry are rendered.
|
---|
92 | </div>
|
---|
93 | <input tal:attributes="checked python:test(int(format)==1 ,'checked', None)" type="radio" id="ssb1" name="showStandardButtons" value="1">
|
---|
94 | <label for="ssb1">Show default buttons for 'Add Comment' and 'Edit'</label><br/>
|
---|
95 |
|
---|
96 | <input tal:attributes="checked python:test(int(format)==0 ,'checked', None)" type="radio" id="ssb2" name="showStandardButtons" value="0">
|
---|
97 | <label for="ssb2">Show links for 'Add Comment' and 'Edit'</label>
|
---|
98 | </div>
|
---|
99 |
|
---|
100 | <div class="field"
|
---|
101 | tal:define="submitted request/sub|python:0;
|
---|
102 | checkit python:test(submitted,request.has_key('showIcons'),here.simpleblog_tool.getShowIcons())">
|
---|
103 | <div class="formHelp">
|
---|
104 | Check this if you want to have entry icons displayed in the various entry overviews, just before the title of each entry.
|
---|
105 | </div>
|
---|
106 | <input type="checkbox"
|
---|
107 | class="noborder"
|
---|
108 | id="showIcons"
|
---|
109 | name="showIcons"
|
---|
110 | tal:attributes="checked python:test(checkit, 'checked', None)" />
|
---|
111 | <label for="showIcons">
|
---|
112 | Show an entry icon before each blog entry's title
|
---|
113 | </label>
|
---|
114 | </div>
|
---|
115 |
|
---|
116 | <br/>
|
---|
117 | <div class="formControls">
|
---|
118 | <input class="context"
|
---|
119 | tabindex=""
|
---|
120 | type="submit"
|
---|
121 | name="form.button.Save"
|
---|
122 | value="Save"
|
---|
123 | i18n:attributes="value"
|
---|
124 | tal:attributes="tabindex tabindex/next;"
|
---|
125 | />
|
---|
126 | <input class="standalone"
|
---|
127 | tabindex=""
|
---|
128 | type="submit"
|
---|
129 | name="form.button.Cancel"
|
---|
130 | value="Cancel"
|
---|
131 | i18n:attributes="value"
|
---|
132 | tal:attributes="tabindex tabindex/next;"
|
---|
133 | />
|
---|
134 | </div>
|
---|
135 | <input type="hidden" name="sub" value="1" />
|
---|
136 | <input type="hidden" name="form.submitted" value="1" />
|
---|
137 | </fieldset>
|
---|
138 | </form>
|
---|
139 | </div>
|
---|
140 | </body>
|
---|
141 | </html> |
---|