[pmwiki-users] Re: Re: recipe programming special markup
dh2mll at web.de
Sun Sep 11 11:14:19 CDT 2005
Karl Loncarek <dh2mll at web.de> wrote in
news:Xns96CEB7647DD79dh2mllwebde at 220.127.116.11:
>> I'm not sure about those double backslashes above; instead it
>> should probably be:
>> Markup('preHeader', '<include',
> This works fine, I just have to add some sort of counter, otherwise
> this markup is done several times for the main text (depending the
> amount of pages that are included in the skin).
> The only problem still remaining: When the Header is in the first line
> of the wikitext it does not work. Any ideas?
OK found a valid markup that works also for headings at the beginning of
The only thing I'm not sure about is how to avoid repeated calls
(checking $InclCount maybe?).
The other problem is that I need to call this Markup also when other
pages are included. I plan to replace the include Markup and check the
included Text, replace headings (i.e. some custom text depending on
include filename) and deliver it as result of the "new" include markup
which is then included in the regular wikitext. Would this work?
Karl (aka Klonk)
More information about the pmwiki-users