= Details = ## please fill this in Applies to:: 1.5.0 Purpose:: Links to long page names that are shortened with "..." will now show complete name in tooltip Description:: In various places (especially the navibar or pagetrail) links to pages with very long names are abbreviated or shortened with an ellipsis (...) replacing several characters in the middle of the page name. This can also happen with interwiki-links to other wikis. This shortening helps preserve the asthetic layout of the header area, but can result in user confusion if long page names are frequently encountered. The shortening is performed by the theme class, of which moin's shipping themes do this (because of the common theme base class). This patch will alter any links which are shortened so that the original full name is supplied as a title attribute (which for the HTML formatter will result in a tooltip displaying the complete name when the mouse hovers). Any links which are not shortened will not have any tooltip title set. For interwiki-links (other than Self), the tooltip title has traditionally contained the name of the interwiki site. So this patch will, if it detects a shortened name, append the complete name to the tooltip rather than replacing it. -- DeronMeranda <> = Patch = ''This patch is not fully tested by the author yet; but should be by 2005-01-17. Use with caution please.'' Be sure to see the note about the HTML escaping problem which appears after the code listing for this patch. ## we prefer that you send the patch in an attachment to avoid whitespace issues ## you should probably change the name of the attachment here {{attachment:theme-init.py.diff}} {{attachment:text_html.py.diff}} == You will also need to fix html-escaping bug == Note that the 1.5.0 HTML formatter has a bug in which the title attribute of the link is not properly escaped. So if you apply the above patches and any of your long page names has any reserved HTML character it may break your browser. So you should either: 1. Also install the MoinMoinPatch/FormatterApiConsistencyForHtmlAttributes patch (but it's a big patch), or 1. Manually patch your {{{MoinMoin/formatter/text_html.py}}} file to force the escaping. The manual fix for the escaping is a one-line change in {{{text_html.py}}} in the {{{def url(...)}}} method: {{{ - title = kw.get('title', None) + title = wikiutil.escape( kw.get('title',''), 1 ) }}} = Discussion = = Plan = ## This part is for Moin``Moin developers: * Priority: * Assigned to: * Status: ---- CategoryMoinMoinPatch