[Checkins] SVN: Products.CMFDefault/trunk/Products/CMFDefault/skins/zpt_generic/ portal_syndication available as globals['syndtool']

Charlie Clark charlie at begeistert.org
Wed Oct 6 05:33:45 EDT 2010


Log message for revision 117276:
  portal_syndication available as globals['syndtool']
  Add link to RSS feed if available.

Changed:
  U   Products.CMFDefault/trunk/Products/CMFDefault/skins/zpt_generic/getMainGlobals.py
  U   Products.CMFDefault/trunk/Products/CMFDefault/skins/zpt_generic/main_template.pt

-=-
Modified: Products.CMFDefault/trunk/Products/CMFDefault/skins/zpt_generic/getMainGlobals.py
===================================================================
--- Products.CMFDefault/trunk/Products/CMFDefault/skins/zpt_generic/getMainGlobals.py	2010-10-06 09:29:53 UTC (rev 117275)
+++ Products.CMFDefault/trunk/Products/CMFDefault/skins/zpt_generic/getMainGlobals.py	2010-10-06 09:33:45 UTC (rev 117276)
@@ -32,6 +32,7 @@
            'mtool': mtool,
            'atool': atool,
            'wtool': wtool,
+           'syndtool': syndtool,
            'caltool_installed': caltool is not None,
            'uidtool_installed': uidtool is not None,
            'portal_object': portal_object,

Modified: Products.CMFDefault/trunk/Products/CMFDefault/skins/zpt_generic/main_template.pt
===================================================================
--- Products.CMFDefault/trunk/Products/CMFDefault/skins/zpt_generic/main_template.pt	2010-10-06 09:29:53 UTC (rev 117275)
+++ Products.CMFDefault/trunk/Products/CMFDefault/skins/zpt_generic/main_template.pt	2010-10-06 09:33:45 UTC (rev 117276)
@@ -5,6 +5,7 @@
                   mtool globals/mtool;
                   atool globals/atool;
                   wtool globals/wtool;
+                  syndtool globals/syndtool;
                   caltool_installed globals/caltool_installed;
                   portal_object globals/portal_object;
                   portal_title globals/portal_title;
@@ -36,6 +37,10 @@
  <link rel="stylesheet" type="text/css" href="calendar.css"
        tal:condition="caltool_installed"
        tal:attributes="href string:${portal_url}/++resource++calendar.css" />
+ <link rel="alternate" type="application/rss+xml"
+       tal:condition="python: syndtool.isSyndicationAllowed(context)"
+       tal:attributes="href string:${context/absolute_url}/@@rss.xml;
+                       title context/Title" />
  <metal:slot define-slot="style_slot" />
 </head>
 



More information about the checkins mailing list