comparison doc/customizing.txt @ 3597:c9e7b66628ad

fix
author Richard Jones <richard@users.sourceforge.net>
date Tue, 14 Mar 2006 23:15:42 +0000
parents 394a69d73b53
children d4112ddfc0bb
comparison
equal deleted inserted replaced
3596:761b222b7f83 3597:c9e7b66628ad
1 =================== 1 ===================
2 Customising Roundup 2 Customising Roundup
3 =================== 3 ===================
4 4
5 :Version: $Revision: 1.196 $ 5 :Version: $Revision: 1.197 $
6 6
7 .. This document borrows from the ZopeBook section on ZPT. The original is at: 7 .. This document borrows from the ZopeBook section on ZPT. The original is at:
8 http://www.zope.org/Documentation/Books/ZopeBook/current/ZPT.stx 8 http://www.zope.org/Documentation/Books/ZopeBook/current/ZPT.stx
9 9
10 .. contents:: 10 .. contents::
2084 in the standard ``strftime`` call (see the `Python Library 2084 in the standard ``strftime`` call (see the `Python Library
2085 Reference: time module`__) 2085 Reference: time module`__)
2086 popcal Generate a link to a popup calendar which may be used to 2086 popcal Generate a link to a popup calendar which may be used to
2087 edit the date field, for example:: 2087 edit the date field, for example::
2088 2088
2089 <span tal:replace="structure context/due/popupCalendar" /> 2089 <span tal:replace="structure context/due/popcal" />
2090 2090
2091 menu only on Link and Multilink properties - render a form select 2091 menu only on Link and Multilink properties - render a form select
2092 list for this property. Takes a number of optional arguments 2092 list for this property. Takes a number of optional arguments
2093 2093
2094 size 2094 size
2107 value 2107 value
2108 gives a default value to preselect in the menu 2108 gives a default value to preselect in the menu
2109 2109
2110 The remaining keyword arguments are used as conditions for 2110 The remaining keyword arguments are used as conditions for
2111 filtering the items in the list - they're passed as the 2111 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'}" />
2113 2119
2114 sorted only on Multilink properties - produce a list of the linked 2120 sorted only on Multilink properties - produce a list of the linked
2115 items sorted by some property, for example:: 2121 items sorted by some property, for example::
2116 2122
2117 python:context.files.sorted('creation') 2123 python:context.files.sorted('creation')

Roundup Issue Tracker: http://roundup-tracker.org/