Personal tools
You are here: Home Zope&Plone Tips 最近の変更をトップへ
Document Actions

最近の変更をトップへ

by maru last modified 2006-10-27 23:31

やっぱり更新履歴は欲しいもんね。ユーザーログイン時しかでないコレをトップへ出すぞい。

 と言うわけで実践。これまたググって 「最近の公開」portletの変更 に行き着き、見習って変更しようと思ったんですが、いま稼働中の /portal_skins/plone_portlets/portlet_recent のソースと比較すると大分違う…。バージョンが違うのかな?

 でふぉのソースを見るとなんか引っかかる記述があったので↓のように変更してみるっと…。

でふぉの「portlet_recent」:

<div metal:define-macro="portlet"
     tal:condition="python:not isAnon and template.getId()!='recently_published'">
     

<tal:recentlist tal:define="last_login_time python:member.getProperty('last_login_time', DateTime());
                                   ・
                                   ・
                                   ・

変更後の「portlet_recent」:

<div metal:define-macro="portlet"
     tal:condition="python:template.getId()!='recently_published'">
     

<tal:recentlist tal:define="last_login_time python:member.getProperty('last_login_time', DateTime());
                                    ・
                                    ・
                                    ・

…ありゃ。できちゃったよ、おい。