X-Git-Url: https://scm.cri.ensmp.fr/git/Plinn.git/blobdiff_plain/3e0a2c257d49fb162da9c70d2f70194036235166..e5079b89ad3a7be4dd96406d3dd291c531255506:/skins/generic/widgets.pt diff --git a/skins/generic/widgets.pt b/skins/generic/widgets.pt index 00d7af8..d87ea31 100644 --- a/skins/generic/widgets.pt +++ b/skins/generic/widgets.pt @@ -114,7 +114,7 @@ tal:content="structure python:''' class="news_box" cellspacing="0" tal:define="ctool python:modules['Products.CMFCore.utils'].getToolByName(here, 'portal_catalog'); news python:ctool(portal_type='News Item' - , sort_on='Date' + , sort_on='modified' , sort_order='reverse' , review_state='published')[:5]" tal:condition="news" @@ -127,7 +127,7 @@ tal:content="structure python:''' <a tal:attributes="href n/getURL ; title n/Description"> <img border="0" alt="News Item" tal:attributes="src n/getIcon" i18n:attributes="alt" /> <span tal:replace="n/Title|n/getId"></span> - <div tal:content="python:DateTime(n.Date).strftime(locale_date_fmt)"></div> + <div tal:content="python:DateTime(n.ModificationDate).strftime(locale_date_fmt)"></div> </a> </td> </tr>