[pmwiki-users] LinkCSSToolTip recipe
design5 at softflow.co.uk
Thu Apr 10 12:16:04 CDT 2008
Thursday, April 10, 2008, 3:15:06 PM, kirpi at kirpi.it wrote:
> I tried further. It seems that, is the page you're in has a tooltip
> inside it, those tooltips that are in the sidebare do work. Otherwise
> they do not.
I see. This is an old dilemma:
I put $HTMLStylesFmt into th emarkup function, so the styles only get
put into a page's HTML header if the markup is in the page.
BUT markup in a sidebar or other sub-page is rendered late, and the
$HTMLStylesFmt styles will never find their way into the HTML header,
as the header is done already.
So the $HTMLStylesFmt should not be in the markup function, but then
the styles always get added to every page, even if no tooltip link
markup is present.
Best may be to put all those styles into pub/local.css, then at least
the browser will cache them for all pages.
What shall I do best for the recipe?
> Also, I found that the standard markup with the plus
> [[ target | + ]] is broken, an the plus is taken literally.
I like to know exactly if it breaks anything.
As far as I can see [[Target| + ]] markup works as ever.
Markup like [[Target | + |: tooltip text:]] will not show the title,
but a simple + as link text. I never created a
[[Target | + |: tooltip text:]] markup.
Also I have no problems with the tooltip link markup in IE6, all
tooltips show fine and are styled fine. Anyone has problems with IE?
More information about the pmwiki-users