On 5/4/2010 5:11 PM, Roger Oberholtzer wrote:
Using the Intermap.txt file to simplify writing links in Trac wiki pages
is a great feature. I even like that there is control over the text in a
pop-up window that is shown when the mouse hovers over the link. But I
wonder if I am missing something on one point: the actual text that gets
listed in the page itself. If I use the Trac macro [comment:33], the
text "33" will be placed in the wiki page. Same for ticket numbers and
other built-in macros. If, however, I define something in InterMap.txt,
the same thing does not happen.

For example, if I define:

        mylink   http://a.b.c/$1 # Page $1 on a.b.c

and I include this in a wiki page

        [mylink:info]

the text that is inserted is

        mylink:info

It makes a proper link and the text in the pop-up info window is as
defined. It is just that the wiki text itself is the macro call itself.
Which is not the same as for built-ins like [ticket:x] or [comment:22].
Of course, I can change the text via the usual mechanism:

        [mylink:info info]

But isn't there a way to make the text that is inserted in the page be
something else?

You mean, have:

   [mylink:info]

be simply rendered as:

   info

like for the other link resolvers?

It used to be like that, and I was a few times tempted to revert that change (r6417), as I find the original behavior more useful and intuitive. If one wants to see mylink:info in full, just write it like that without the [...]. Simon, is there any reason for the change that I missed?

-- Christian

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