[CMF-checkins] CVS: CMF - disableSyndication.dtml:1.1 editSynProperties.dtml:1.1 enableSyndication.dtml:1.1 synPropertiesForm.dtml:1.1
andrew@digicool.com
andrew@digicool.com
Fri, 18 May 2001 17:29:49 -0400 (EDT)
Update of /cvs-repository/CMF/CMFDefault/skins/control
In directory korak.digicool.com:/tmp/cvs-serv26027/skins/control
Added Files:
disableSyndication.dtml editSynProperties.dtml
enableSyndication.dtml synPropertiesForm.dtml
Log Message:
*SyndicationTool/SyndicationInfo object for enabling and
configuring Syndication services in the CMF.
DTML for the ZMI configuration, DTML Methods for configuartion
via the CMF, added help for CMFDefault and related files to the
help for Syndication.
--- Added File disableSyndication.dtml in package CMF ---
<dtml-if expr="portal_syndication.isSiteSyndicationAllowed()">
<dtml-call "portal_syndication.disableSyndication(this())">
<dtml-call "REQUEST['RESPONSE'].redirect(absolute_url() +
'/synPropertiesForm?portal_status_message=Syndication+Disabled')">
<dtml-else>
<dtml-call "REQUEST['RESPONSE'].redirect(portal_url() + '/rssNotAllowed')">
</dtml-if>
--- Added File editSynProperties.dtml in package CMF ---
<dtml-with portal_syndication>
<dtml-call
expr="editSyInformationProperties(this()
, REQUEST['updatePeriod']
, REQUEST['updateFrequency']
, REQUEST['updateBase']
, REQUEST['max_items']
, REQUEST)">
</dtml-with>
<dtml-call expr="REQUEST['RESPONSE'].redirect(absolute_url() +
'/synPropertiesForm' +
'?portal_status_message=Syndication+Properties+Updated.')">
--- Added File enableSyndication.dtml in package CMF ---
<dtml-if expr="portal_syndication.isSiteSyndicationAllowed()">
<dtml-call "portal_syndication.enableSyndication(this())">
<dtml-call "REQUEST['RESPONSE'].redirect(absolute_url() +
'/synPropertiesForm?portal_status_message=Syndication+Enabled')">
<dtml-else>
<dtml-call "REQUEST['RESPONSE'].redirect(portal_url() + '/rssNotAllowed')">
</dtml-if>
--- Added File synPropertiesForm.dtml in package CMF ---
<dtml-var standard_html_header>
<body bgcolor="#ffffff">
<h2>Default Syndication Properties</h2>
<dtml-if expr="portal_syndication.isSiteSyndicationAllowed()">
<dtml-if expr="portal_syndication.isSyndicationAllowed(this())">
<form action="editSynProperties" method="post">
<table width="100%" border="0">
<tr>
<th colspan="2" valign="top" align="left">Channel Properties</th>
</tr>
<tr>
<td colspan="2">
<table width="90%" border="1">
<tr>
<td>
<table>
<tr>
<td valign="top" height="30">Channel Title: </td>
<td valign="top" height="30">
<dtml-let title="this().Title">
&dtml-title;
</dtml-let>
</td>
</tr>
<tr>
<td valign="top" height="30">Channel Description: </td>
<td valign="top" height="30">
<dtml-let description="this().Description">
&dtml-description;
</dtml-let>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table width="100%" border="0">
<tr>
<th valign="top" align="left">Sy Module Properties</th>
</tr>
<tr>
<td colspan="2">
<table width="90%" border="1"><tr><td>
<table>
<tr>
<th align="left">Element</th>
<th align="left">Default Value</th>
</tr>
<dtml-with portal_syndication>
<tr>
<td>
UpdatePeriod
</td>
<td>
<select name="updatePeriod">
<dtml-in buildUpdatePeriods>
<option value="&dtml-sequence-key;"
<dtml-if expr="_['sequence-key'] ==
getUpdatePeriod(this())">
selected="selected"</dtml-if>>&dtml-sequence-item;
</option>
</dtml-in>
</select>
</td>
</tr>
<tr>
<td>
UpdateFrequency
</td>
<td>
<input type="text" name="updateFrequency"
value="<dtml-let
updateFrequency="getUpdateFrequency(this())">&dtml-updateFrequency;"</dtml-let> size="3">
</td>
</tr>
<tr>
<td>
UpdateBase
</td>
<td>
<dtml-let updateBase="getUpdateBase(this())">
<input type="text" name="updateBase:date"
value="&dtml-updateBase;" size="25">
</dtml-let>
</td>
</tr>
<tr>
<td>
Max Syndicated Items
</td>
<td>
<input type="text" name="max_items"
value="<dtml-let
max_items="getMaxItems(this())">&dtml-max_items;"</dtml-let> size="3">
</td>
</tr>
</dtml-with>
<tr>
<td colspan="2">
<input type="submit" name="edit" value=" Save ">
</td>
</tr>
</table>
</td></tr></table>
</td>
</tr>
<tr>
<td> <br /> </td>
</tr>
</table>
</form>
<form action="disableSyndication" method="post">
<input type="submit" value="Disable Syndication"></input>
<input type="hidden" name="isAllowed:int" value="0"></input>
</form>
<dtml-else>
<form action="enableSyndication" method="post">
<input type="hidden" name="isAllowed:int" value="1">
<input type="submit" value="Enable Syndication">
</form>
</dtml-if>
<dtml-else>
<h4>Syndication is Disabled</h4>
</dtml-if>
<dtml-var standard_html_footer>