On Thu, 2010-01-21 at 11:46 -0500, Chris Nelson wrote: > yoheeb wrote: > > ... > > I was hoping/planning to find a way on render to just replace $self > > with "basename" for a ticket, that would just be the ticket number, > > for a wiki page, it would be the base name of the wikipage, which in > > my use case, just happens to be a number, and the creation mechanism > > makes the number the same as the ticket number. > > ... > > We have a [[ThisPage]] macro we developed that might do that. > > Provide the name of the current page or related details. > > Usage: > > [[ThisPage]] # Provide the name of the current page. > [[ThisPage(name)]] # Same as above > [[ThisPage(rev)]] # The current revision > [[ThisPage(changed)]] # When the page was last modified > > It even sees through wiki includes to it can be put in a fragment and > ends up giving information about the page the fragment is used in. > > I don't know that we've contributed it to TH but I'd be happy to.
That could be interesting. So, we would need a: [[ThisTicket(number)]] [[ThisTicket(rev)]] and so on. As a general interface, perhaps as 'simple' as having each data base variable for the ticket available this way. Or at least the ones that make sense to have available this way. -- Roger Oberholtzer -- You received this message because you are subscribed to the Google Groups "Trac Users" 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-users?hl=en.
