Modify ↓
#8051 closed defect (worksforme)
Change of Ticket template doesn't work
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | web frontend | Version: | 0.11.2.1 |
Severity: | normal | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
I tried to enlarge rows of description field by modifying newticket.cs, however, it doesn't work. Here is what I did:modify value of rows from 15 to 45 in /usr/share/trac/template/newticket.cs: <textarea id="description" name="description" class="wikitext"rows="45" cols="78"> Then go Trac project, click "New Tickets", the description field does not change at all.
Attachments (0)
Change History (4)
comment:1 by , 16 years ago
Resolution: | → worksforme |
---|---|
Status: | new → closed |
comment:3 by , 16 years ago
Or,
- Create a
site.html
and write your html transformation there - see TracInterfaceCustomization#SiteAppearance
Note:
See TracTickets
for help on using tickets.
Since Trac 0.11, the template engine changed from ClearSilver to Genshi. Modifying your old 0.10 .cs template files is therefore pointless.
You should instead modify the Genshi templates:
The latter method is the preferred one, as it has better chances to adapt to changes to the template as you upgrade Trac.
P.S.: in 0.11 the newticket.cs and ticket.cs have been merged into a single ticket.html template. If you used to know well ClearSilver, you can look at TracDev/PortingFromClearSilverToGenshi for a conversion tutorial.