Mercurial > p > roundup > code
changeset 3660:d6aeef8a1910
minor fix from [SF#1517913]
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Fri, 11 Aug 2006 00:50:43 +0000 |
| parents | bfb120928309 |
| children | f4a78e6c6a1b |
| files | doc/customizing.txt |
| diffstat | 1 files changed, 10 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/doc/customizing.txt Fri Aug 11 00:44:00 2006 +0000 +++ b/doc/customizing.txt Fri Aug 11 00:50:43 2006 +0000 @@ -2,7 +2,7 @@ Customising Roundup =================== -:Version: $Revision: 1.203 $ +:Version: $Revision: 1.204 $ .. This document borrows from the ZopeBook section on ZPT. The original is at: http://www.zope.org/Documentation/Books/ZopeBook/current/ZPT.stx @@ -2829,28 +2829,28 @@ tracker access (note that roundup-server would need to be restarted as it caches the schema). -1. modify the schema:: +1. modify the ``schema.py``:: issue = IssueClass(db, "issue", assignedto=Link("user"), topic=Multilink("keyword"), priority=Link("priority"), status=Link("status"), due_date=Date()) -2. add an edit field to the issue.item.html template:: +2. add an edit field to the ``issue.item.html`` template:: <tr> <th>Due Date</th> <td tal:content="structure context/due_date/field" /> </tr> -3. add the property to the issue.index.html page:: +3. add the property to the ``issue.index.html`` page:: (in the heading row) <th tal:condition="request/show/due_date">Due Date</th> (in the data row) <td tal:condition="request/show/due_date" tal:content="i/due_date" /> -4. add the property to the issue.search.html page:: +4. add the property to the ``issue.search.html`` page:: <tr tal:define="name string:due_date"> <th i18n:translate="">Due Date:</th> @@ -2860,6 +2860,11 @@ <td metal:use-macro="group_input"></td> </tr> +5. if you wish for the due date to appear in the standard views listed + in the sidebar of the web interface then you'll need to add "due_date" + to the list of @columns in the links in the sidebar section of + ``page.html``. + Adding a new constrained field to the classic schema ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
