22Customising Roundup
33===================
44
5- :Version: $Revision: 1.203 $
5+ :Version: $Revision: 1.204 $
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
@@ -2829,28 +2829,28 @@ Schema changes are automatically applied to the database on the next
28292829tracker access (note that roundup-server would need to be restarted as it
28302830caches the schema).
28312831
2832- 1. modify the schema::
2832+ 1. modify the `` schema.py`` ::
28332833
28342834 issue = IssueClass(db, "issue",
28352835 assignedto=Link("user"), topic=Multilink("keyword"),
28362836 priority=Link("priority"), status=Link("status"),
28372837 due_date=Date())
28382838
2839- 2. add an edit field to the issue.item.html template::
2839+ 2. add an edit field to the `` issue.item.html`` template::
28402840
28412841 <tr>
28422842 <th>Due Date</th>
28432843 <td tal:content="structure context/due_date/field" />
28442844 </tr>
28452845
2846- 3. add the property to the issue.index.html page::
2846+ 3. add the property to the `` issue.index.html`` page::
28472847
28482848 (in the heading row)
28492849 <th tal:condition="request/show/due_date">Due Date</th>
28502850 (in the data row)
28512851 <td tal:condition="request/show/due_date" tal:content="i/due_date" />
28522852
2853- 4. add the property to the issue.search.html page::
2853+ 4. add the property to the `` issue.search.html`` page::
28542854
28552855 <tr tal:define="name string:due_date">
28562856 <th i18n:translate="">Due Date:</th>
@@ -2860,6 +2860,11 @@ caches the schema).
28602860 <td metal:use-macro="group_input"></td>
28612861 </tr>
28622862
2863+ 5. if you wish for the due date to appear in the standard views listed
2864+ in the sidebar of the web interface then you'll need to add "due_date"
2865+ to the list of @columns in the links in the sidebar section of
2866+ ``page.html``.
2867+
28632868
28642869Adding a new constrained field to the classic schema
28652870~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
0 commit comments