Another note.
這是個用 mxmCounter 製作的 hit counter portlet。使用前,別忘了在 zope 的根目錄新增一個 mxmCounter 物件喔!
<html xmlns:tal="http://xml.zope.org/namespaces/tal" xmlns:metal="http://xml.zope.org/namespaces/metal" i18n:domain="plone"> <body> <div metal:define-macro="portlet" tal:define="page_hits python:here.mxm_counter.count(here)"> <dl class="portlet" id="portlet-hit"> <dt class="portletHeader"> hit </dt> <dd class="portletItemSingle"> Viewed <span tal:content="python:'%i' % page_hits" /> times </dd> </dl> </div> </body> </html>
Posted by yungyuc
at 16:46,
0 comment,
0 trackback.
Navigate
- Previous: adsense portlet for plone 2.1 @2005/12/11
- Next: gmail manager @2005/12/16
Add a trackback
Please send trackback to: http://blog.seety.org/everydaywork/2005/12/11/453/trackback/.
Add a comment