22Customising Roundup
33===================
44
5- :Version: $Revision: 1.196 $
5+ :Version: $Revision: 1.197 $
66
77.. This document borrows from the ZopeBook section on ZPT. The original is at:
88 http://www.zope.org/Documentation/Books/ZopeBook/current/ZPT.stx
@@ -2086,7 +2086,7 @@ pretty Date properties - render the date as "dd Mon YYYY" (eg. "19
20862086popcal Generate a link to a popup calendar which may be used to
20872087 edit the date field, for example::
20882088
2089- <span tal:replace="structure context/due/popupCalendar " />
2089+ <span tal:replace="structure context/due/popcal " />
20902090
20912091menu only on Link and Multilink properties - render a form select
20922092 list for this property. Takes a number of optional arguments
@@ -2109,7 +2109,13 @@ menu only on Link and Multilink properties - render a form select
21092109
21102110 The remaining keyword arguments are used as conditions for
21112111 filtering the items in the list - they're passed as the
2112- "filterspec" argument to a Class.filter() call.
2112+ "filterspec" argument to a Class.filter() call. For example::
2113+
2114+ <span tal:replace="structure context/status/menu" />
2115+
2116+ <span tal:replace="python:context.status.menu(order='+name",
2117+ value='chatting',
2118+ filterspec={'status': '1,2,3,4'}" />
21132119
21142120sorted only on Multilink properties - produce a list of the linked
21152121 items sorted by some property, for example::
0 commit comments