[1] | 1 | <tal:header tal:replace="structure here/manage_page_header|nothing">Header</tal:header> |
---|
| 2 | <tal:message tal:define="manage_tabs_message options/manage_tabs_message | request/manage_tabs_message | nothing" |
---|
[204] | 3 | tal:replace="structure here/manage_tabs">Tabs</tal:message> |
---|
[1] | 4 | <tal:body |
---|
[204] | 5 | tal:define="portal here/portal_url/getPortalObject; |
---|
| 6 | canonical_url_value request/canonical_url_value | python:portal.getProperty('canonical_url'); |
---|
| 7 | hasCanonicalURL request/hasCanonicalURL | python:portal.hasProperty('canonical_url'); |
---|
[1] | 8 | button request/submit | nothing; |
---|
| 9 | submitted request/submitted | nothing;"> |
---|
[204] | 10 | <div tal:condition="submitted" |
---|
| 11 | tal:omit-tag=""> |
---|
| 12 | <tal:common> |
---|
| 13 | <div tal:condition="python:button=='Update' and hasCanonicalURL"> |
---|
| 14 | <tal:block define="result python:portal.manage_changeProperties(canonical_url=canonical_url_value)"/> |
---|
| 15 | </div> |
---|
| 16 | <div tal:condition="python:button=='Add' and not hasCanonicalURL"> |
---|
| 17 | <tal:block define="result python:portal.manage_addProperty('canonical_url', canonical_url_value, 'string')"/> |
---|
| 18 | </div> |
---|
| 19 | </tal:common> |
---|
| 20 | </div> |
---|
[1] | 21 | |
---|
[204] | 22 | <h3>Overview</h3> |
---|
| 23 | <p> |
---|
| 24 | <strong>portal_pingtool</strong> is symple tool to enable pinging of external feed agregators. |
---|
| 25 | </p> |
---|
| 26 | <div tal:omit-tag="" |
---|
| 27 | tal:define="hasCanonicalURL request/hasCanonicalURL | python:portal.hasProperty('canonical_url'); |
---|
| 28 | action python:test(hasCanonicalURL, 'Update', 'Add');"> |
---|
| 29 | <h3 tal:content="string:$action Canonical URL">Update Canonical URL</h3> |
---|
| 30 | <p tal:condition="not:hasCanonicalURL">Until you setup canonical_url - Ping Tool will not work.</p> |
---|
[1] | 31 | |
---|
[207] | 32 | <form method="post" action="" tal:attributes="action template/getId"> |
---|
[204] | 33 | <input type="hidden" name="submitted" value="1" /> |
---|
| 34 | <p class="form-help" |
---|
| 35 | tal:content="string:To $action the property, enter a canonical URL value and click the "$action" button"> |
---|
| 36 | To Add/Update the property, enter a canonical URL value and click the "Add/Update" button. |
---|
| 37 | </p> |
---|
[1] | 38 | |
---|
[204] | 39 | <table> |
---|
| 40 | <tr> |
---|
| 41 | <td align="left" valign="top"> |
---|
| 42 | <div class="form-label">Canonical URL</div> |
---|
| 43 | </td> |
---|
| 44 | <td align="left" valign="top"> |
---|
| 45 | <input type="text" size="30" value="" name="canonical_url_value" |
---|
| 46 | tal:attributes="value canonical_url_value | nothing"/> |
---|
| 47 | </tr> |
---|
| 48 | <tr> |
---|
| 49 | <td align="right" valign="top"> |
---|
| 50 | <div class="form-element"> |
---|
| 51 | <input class="form-element" type="submit" name="submit" value="Save" |
---|
| 52 | tal:attributes="value string:$action;" /> |
---|
| 53 | </div> |
---|
| 54 | </td> |
---|
| 55 | </tr> |
---|
| 56 | </table> |
---|
| 57 | </form> |
---|
| 58 | </div> |
---|
[1] | 59 | </tal:body> |
---|
| 60 | <tal:footer tal:replace="structure here/manage_page_footer|nothing">footer</tal:footer> |
---|