Hi Oliver,
Thursday, November 8, 2012, 8:34:21 AM, you wrote:
>>And you cannot do that with Markup('yourmarkupname', 'directives',
>>'/\\(:noleft:\\)/ei', "YourFunctionThatTriggersWhateverYouNeed()"); ?
> in current PmWiki these are already defined in the core so I hesitate
> to redefine them. There should be a cleaner way.
I've always just done that, in skin.php.
But you could try something like this:
(:noleft:) via the core definition will set variable
$GLOBALS['TmplDisplay']['PageLeftFmt'] = 0;
so you could check for that in your skin.php to trigger your style
injections:
if ($GLOBALS['TmplDisplay']['PageLeftFmt']==0)
{ $HTMLStylesFmt['[...'] = ....; }
Best regards,
Hans
www.softflow.co.uk
_______________________________________________
pmwiki-users mailing list
[email protected]
http://www.pmichaud.com/mailman/listinfo/pmwiki-users