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
Add a trackback
Add a comment

Your name. (required)

Your personal website. (optional)

Your email address. Will not show in page. (suggested, but optional)

Text format is "Plain Text".

Enter "hhCIE"
© hover year to navigate month: powered by django