comparison doc/customizing.txt @ 3128:f0051e4bc8b7 maint-0.8

doc fixes, one more fix to the permissions-in-listings fix
author Richard Jones <richard@users.sourceforge.net>
date Fri, 11 Feb 2005 22:27:59 +0000
parents 8b0669b96c8d
children 96086801bd61
comparison
equal deleted inserted replaced
3124:8b0669b96c8d 3128:f0051e4bc8b7
1 =================== 1 ===================
2 Customising Roundup 2 Customising Roundup
3 =================== 3 ===================
4 4
5 :Version: $Revision: 1.161.2.6 $ 5 :Version: $Revision: 1.161.2.7 $
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::
1923 Interval properties - render the interval in a pretty 1923 Interval properties - render the interval in a pretty
1924 format (eg. "yesterday"). The format arguments are those used 1924 format (eg. "yesterday"). The format arguments are those used
1925 in the standard ``strftime`` call (see the `Python Library 1925 in the standard ``strftime`` call (see the `Python Library
1926 Reference: time module`__) 1926 Reference: time module`__)
1927 menu only on Link and Multilink properties - render a form select 1927 menu only on Link and Multilink properties - render a form select
1928 list for this property 1928 list for this property. Takes a number of optional arguments
1929
1930 size
1931 is used to limit the length of the list labels
1932 height
1933 is used to set the <select> tag's "size" attribute
1934 showid
1935 includes the item ids in the list labels
1936 additional
1937 lists properties which should be included in the label
1938 sort_on
1939 indicates the property to sort the list on as (direction,
1940 property) where direction is '+' or '-'.
1941
1942 The remaining keyword arguments are used as conditions for
1943 filtering the items in the list - they're passed as the
1944 "filterspec" argument to a Class.filter() call.
1929 sorted only on Multilink properties - produce a list of the linked 1945 sorted only on Multilink properties - produce a list of the linked
1930 items sorted by some property, for example:: 1946 items sorted by some property, for example::
1931 1947
1932 python:context.files.sorted('creation') 1948 python:context.files.sorted('creation')
1933 1949
2636 3. add the property to the issue.index.html page:: 2652 3. add the property to the issue.index.html page::
2637 2653
2638 (in the heading row) 2654 (in the heading row)
2639 <th tal:condition="request/show/due_date">Due Date</th> 2655 <th tal:condition="request/show/due_date">Due Date</th>
2640 (in the data row) 2656 (in the data row)
2641 <td tal:condition="request/show/priority" tal:content="i/due_date" /> 2657 <td tal:condition="request/show/due_date" tal:content="i/due_date" />
2642 2658
2643 4. add the property to the issue.search.html page:: 2659 4. add the property to the issue.search.html page::
2644 2660
2645 <tr tal:define="name string:due_date"> 2661 <tr tal:define="name string:due_date">
2646 <th i18n:translate="">Due Date:</th> 2662 <th i18n:translate="">Due Date:</th>

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