-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Chris Nelson wrote: > My problem is not how to popup the window -- jsGantt already uses JS to > do that -- but how to control the format of what's in the new window.
Ok, I couldn't read that in your request. > My thought was that if I could get the /ticket provider to support an > alternate, compressed format, the URL I use in the JS could invoke the > ticket viewer with that alternate format specified. I can have > /milestone/MilestonName and /milestone/MilestonName?action=edit. What > I'm looking for is /ticket/1234 and /ticket/1234?format=mini but I don't > know how to start doing that. There is a provider listening to /ticket/<number> URLs and serving a template (in Trac 0.12 it's actually a set of templates pulled in by ticket.html template). You'd need to a) change that code directly = patch Trac (very ugly) or b) overwrite and extend that provider (more suitable for a Trac plugin) It could be easier, if you don't insist in extending existing functionality, like you suggested, and use a slightly different URL rather than an argument, like: /miniticket/1234 and create some code to serve your custom miniature version of ticket.html, most probably in combination with a custom CSS file too. Again, how to build the Genshi template and how to serve it by a combination of ITemplateProvider, IRequestFilter and IRequestHandler could be seen in the aforementioned CcSelectorPlugin. Steffen Hoffmann (hasienda) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAk0aRAAACgkQ31DJeiZFuHf6ZgCfXQNs60ovzHAt/MW8vMwVSkAa 0z0An2xNbOcq//MR03/beeKH3ffVUS8o =Df49 -----END PGP SIGNATURE----- -- You received this message because you are subscribed to the Google Groups "Trac Development" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/trac-dev?hl=en.
