Edgewall Software
Modify

Opened 20 years ago

Closed 19 years ago

Last modified 12 years ago

#266 closed enhancement (worksforme)

Use 'title' attribute in links

Reported by: daniel Owned by: daniel
Priority: low Milestone:
Component: general Version:
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

We should make use of the title attribute for links, providing useful information and hints in the popup text.

Attachments (0)

Change History (11)

comment:1 by daniel, 20 years ago

Milestone: 0.8
Owner: changed from Jonas Borgström to daniel
Status: newassigned

comment:2 by daniel, 20 years ago

Milestone: 0.80.9

See also: #664

comment:3 by Christopher Lenz, 19 years ago

So now we have titles/tooltips for all kinds of TracLinks, what other kind of titles should we support? I think we should either clarify the scope of this request, or close it.

comment:4 by utopiste, 19 years ago

Resolution: duplicate
Status: assignedclosed

seem a duplicate of #664

comment:5 by Matthew Good, 19 years ago

Milestone: 0.9

comment:6 by mathieu.trocme@…, 12 years ago

I don't think this is a duplicate. For me it refers to any links, not only tickets. In this regard, this feature seems to be already available for the wiki markup "wiki:". Compare the link "WikiCreole" on the 2 following pages: http://trac.edgewall.org/wiki/TracLinks and http://trac.edgewall.org/wiki/WikiCreole. In the first case, the corresponding html title attribute is set, in the second, it is not. So the mechanism already exists. I could not figure out which one though :-( (looking at Trac-0.12.3/trac/wiki/formatter.py) So could you please first tell me what is it? (something like [wiki:MyWikiPage?MyParameter="my title"] ?) Then, if not implemented, extend this mechanism to any types of links, especially external links.

Cheers, Mathieu

comment:7 by Mikael Relbe, 12 years ago

The first one is an InterTrac link, [trac:WikiCreole], that's why the title attribute is set here. The second one is an ordinary URL.

comment:8 by Christian Boos, 12 years ago

Resolution: duplicateworksforme

The [[span()]] macro could be used to achieve this, like we did on the WikiStart page:

[[span(TracProject,title=Learn more about the project)]],
'''[[span(HowToContribute,title=Practical tips for providing useful contributions)]]''',
[[span(TracTeam,title=It's their fault - well not really)]],
[[span(TracDev,title=Dive into the internals of Trac)]]

which renders as:

TracProject, HowToContribute, TracTeam, TracDev

The title attribute is for the surrounding <span> rather than for the <a> itself, but the result is the same for the user.

comment:9 by mathieu.trocme@…, 12 years ago

Thx Christian. It also works with external links :-) [[span(http://trac.edgewall.org,title=Learn more about the Trac project)]] However I don't manage to display the link as a descriptive title like in [http://www.edgewall.com Edgewall Software] Could you please tell me how to proceed? Cheers, Mathieu

comment:10 by Christian Boos, 12 years ago

Well, the same way:

[[span([http://www.edgewall.com Edgewall Software],title=What a nice (virtual) place!)]]

Edgewall Software

Note however that the Wiki parser is not smart enough to cope with [[ ... ]] embeddings, so the above wouldn't work with the WikiCreole link [[http://www.edgewall.com|Edgewall Software]].

comment:11 by anonymous, 12 years ago

Stupid me! Thanks again :-) M

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain daniel.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from daniel to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.