[1] | 1 | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
|
---|
| 2 | lang="en"
|
---|
| 3 | metal:use-macro="here/main_template/macros/master"
|
---|
| 4 | i18n:domain="plone">
|
---|
| 5 |
|
---|
| 6 | <body>
|
---|
| 7 |
|
---|
| 8 | <div metal:fill-slot="main"
|
---|
| 9 | tal:define="errors options/state/getErrors;
|
---|
| 10 | sy_info python:here.getSynProp();
|
---|
| 11 | params ">
|
---|
| 12 |
|
---|
| 13 | <h1 i18n:translate="heading_RSS2_setup">
|
---|
| 14 | RSS2 feeds setup
|
---|
| 15 | </h1>
|
---|
| 16 | <!-- <tal:x replace="sy_info"/>-->
|
---|
| 17 | <form name="edit_form"
|
---|
| 18 | action="."
|
---|
| 19 | method="post"
|
---|
| 20 | enctype="multipart/form-data"
|
---|
| 21 | tal:attributes="action string:${here/getId}/${template/getId}" >
|
---|
| 22 |
|
---|
| 23 | <fieldset>
|
---|
| 24 |
|
---|
| 25 | <legend i18n:translate="legend_setup_rss2">Setup Details</legend>
|
---|
| 26 |
|
---|
| 27 |
|
---|
| 28 | <div class="field">
|
---|
| 29 |
|
---|
| 30 | <label for="rss2_types" i18n:translate="label_select_RSS2_types">Select types</label>
|
---|
| 31 |
|
---|
| 32 | <div class="formHelp" i18n:translate="help_select_RSS2_types">
|
---|
| 33 | Select types to be included the RSS2 feed.
|
---|
| 34 | </div>
|
---|
| 35 |
|
---|
| 36 | <select name="rss2_types:list:string"
|
---|
| 37 | multiple="multiple"
|
---|
| 38 | size="20"
|
---|
| 39 | tal:define="types here/portal_types/listTypeInfo;
|
---|
| 40 | ">
|
---|
| 41 | <metal:block tal:repeat="ctype types">
|
---|
| 42 | <option value="Document"
|
---|
| 43 | tal:define="Id ctype/getId;
|
---|
| 44 | is_selected python: ctype.getId() in sy_info['rss2_types']"
|
---|
| 45 | tal:attributes="value ctype/getId;
|
---|
| 46 | selected is_selected|nothing"
|
---|
| 47 | tal:content="python:ctype.Title()"
|
---|
| 48 | i18n:translate="">Document</option>
|
---|
| 49 | </metal:block>
|
---|
| 50 |
|
---|
| 51 | </select>
|
---|
| 52 | </div>
|
---|
| 53 |
|
---|
| 54 | <div class="field">
|
---|
| 55 |
|
---|
| 56 | <input type="checkbox"
|
---|
| 57 | name="only_published"
|
---|
| 58 | value="1"
|
---|
| 59 | tal:define="checked python:sy_info['only_published'] and 'checked'"
|
---|
| 60 | tal:attributes="checked checked"/>
|
---|
| 61 |
|
---|
| 62 | <label for="only_published" i18n:translate="label_only_published">Only published content</label>
|
---|
| 63 |
|
---|
| 64 | </div>
|
---|
| 65 | <div class="field">
|
---|
| 66 |
|
---|
| 67 | <input type="checkbox"
|
---|
| 68 | name="include_subfolders"
|
---|
| 69 | value="0"
|
---|
| 70 | tal:define="checked python:sy_info['include_subfolders'] and 'checked'"
|
---|
| 71 | tal:attributes="checked checked"/>
|
---|
| 72 |
|
---|
| 73 | <label for="include_subfolders" i18n:translate="label_include_subfolders">Include subfolders content</label>
|
---|
| 74 |
|
---|
| 75 | </div>
|
---|
| 76 |
|
---|
| 77 |
|
---|
| 78 | <div class="field"
|
---|
| 79 | tal:define="error errors/articles_number|nothing;"
|
---|
| 80 | tal:attributes="class python:test(error, 'field error', 'field')">
|
---|
| 81 | <label for="articles_number" i18n:translate="label_articles_number">Articles number</label>
|
---|
| 82 |
|
---|
| 83 | <div class="formHelp" i18n:translate="help_articles_number">
|
---|
| 84 | Articles number to be included the RSS2 feed.
|
---|
| 85 | </div>
|
---|
| 86 | <div tal:content="error">Validation error output</div>
|
---|
| 87 | <input type="text"
|
---|
| 88 | name="articles_number"
|
---|
| 89 | value=""
|
---|
| 90 | tal:define="articles_number python:request.get('articles_number',None) or sy_info['articles_number'] or 20"
|
---|
| 91 | tal:attributes="value articles_number"/>
|
---|
| 92 | </div>
|
---|
| 93 |
|
---|
| 94 |
|
---|
| 95 |
|
---|
| 96 | <div class="formControls">
|
---|
| 97 |
|
---|
| 98 | <input class="context"
|
---|
| 99 | tabindex=""
|
---|
| 100 | type="submit"
|
---|
| 101 | name="form.button.Save"
|
---|
| 102 | value="Save"
|
---|
| 103 | i18n:attributes="value"
|
---|
| 104 | tal:attributes="tabindex tabindex/next;
|
---|
| 105 | disabled python:test(isLocked, 'disabled', None);" />
|
---|
| 106 |
|
---|
| 107 | </div>
|
---|
| 108 | </fieldset>
|
---|
| 109 |
|
---|
| 110 | <input type="hidden" name="form.submitted" value="1" />
|
---|
| 111 |
|
---|
| 112 | </form>
|
---|
| 113 |
|
---|
| 114 |
|
---|
| 115 | </div>
|
---|
| 116 |
|
---|
| 117 | </body>
|
---|
| 118 | </html>
|
---|