09 April
2007

Date Modified

Plone, is a wonderful tool, but.....

The recent insanity was that Plone's recently modified portlet orders things by the last modification date, but displays the creation date under the item listed.

Simple to change you'd think, but there's a catch. What's the property for the last modiciation? Well I'll just look it up in the API. Err what API?

I eventually found out by a process of trial and error that I have to modifiy:

                    <div class="portletDetails"
                         tal:content="python:here.toPortalTime(obj.Date)">July 7, 08:11</div>

to:

                    <div class="portletDetails"
                         tal:content="python:here.toPortalTime(obj.Modified)">July 7, 08:11</div>

Argghh - why is there no decent documentation for such a powerfull CMS!


Posted by faye at 14:01
| Main | Officially a boffin >>