[pmwiki-users] Cookbook LinkPageExistsFmtTooltip

Hans design5 at softflow.co.uk
Sat Jun 28 09:15:12 CDT 2008


Saturday, June 28, 2008, 3:02:48 PM, noskule wrote:

> ah other way around, tooltips for *images* don't work anymore.

try this markup instead, I replaced one \\s* with \\s+

Markup('[[|tt','<[[|',
 "/(?>\\[\\[([^|\\]]*)\\|\\s*)(.*?)\\s+(\"(.*?)\")?\\s*\\]\\]($SuffixPattern)/e",
 "Keep(ToolTipLink(\$pagename,PSS('$1'),PSS('$2'),PSS('$4'),'$5'),'L')");

The only diffference is that you need a space between link text and
"tooltip":
    [[Link| text "tooltip"]]
and for the image tooltip you use no space: image.jpg"tooltip"


  ~Hans




More information about the pmwiki-users mailing list