-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Isaac.PEG skrev 18-04-2008 03:33: | Could someone point me to a simple (perhaps even step-by-step) | tutorial or help page explaining exactly how to add static content to | the wiki edit / new ticket / ticket edit forms? | | I read through the following page, and found it inadequate (and a bit | confusing on exactly where that example snippet is supposed to go). | http://trac.edgewall.org/wiki/TracInterfaceCustomization
I agree this documentation could use an update -- but I'm afraid I don't have the time to do anything about it right now. | I also skimmed through the Genshi tutorial, but it seemed way more | complex than what I want to do. I have never used a templating system | before (except through MS Word), though I understand the philosophy | behind it. Well, the upside is that the simple stuff actually *is* simple with genshi. If you're using trac version 0.11b, with Genshi-templates, you can simply copy ~ /<trac-install-path>/ticket/templates/ticket.html to the template folder of your trac-instance(s), and edit it in a normal text editor. Personally I find these templates include way too much logic in the "view" (in model-view-controller terminology) -- but if you look at the file you'll notice some familiar sections, such as: ~ Create ticket (...) on line 85. and ~ Note: see (...) for help on using tickets on line 387 You can basically include any text you'd like here, probably adding a paragraph-tag -- or better yet -- just a link to a wiki-page -- eg: ~ <h2><a href="${href.wiki('TracTickets')}">READ THIS FIRST!</a></h2> | I'm using Trac as an issue tracker for the undergraduate curriculum | written by the Physics Education Research Group at the University of | Washington, and would like to have clear instructions on the naming | conventions for tickets and wiki pages we are establishing. | | Thanks for any help or pointers you can share. Again, I'd recommend keeping most of this documentation in the wiki, and just make prominent links to it on the trac front-page, and maybe a "help"-link on the ticket-page. As you'll see if you follow the help-link -- you're free to edit all these pages as you see fit. Hope this gets you started. Best regards, - -- ~ .---. Eirik Schwenke <[EMAIL PROTECTED]> ( NSD ) Harald HÃ¥rfagresgate 29 Rom 150 ~ '---' N-5007 Bergen tlf: (555) 889 13 ~ GPG-key at pgp.mit.edu Id 0x8AA3392C -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFIDJnvxUW7FIqjOSwRAkEjAJ9GyBfO4tS5dJ9fawv6+0bDY0aJiwCgq3F0 UuOu1pDPrrle6ZnCCRCsKXw= =WwVU -----END PGP SIGNATURE----- --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Trac Users" group. To post to this group, send email to trac-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/trac-users?hl=en -~----------~----~----~----~------~----~------~--~---