[pmwiki-users] Cookbook LinkPageExistsFmtTooltip
noskule
noskule at gmx.net
Sat Jun 28 09:25:00 CDT 2008
Hans schrieb:
> 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
>
>
hm, but wouldn't it be possible to use the same syntax for both cases.
What's the reason for this?
More information about the pmwiki-users
mailing list