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.

-- 
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.


Reply via email to