[pmwiki-devel] [O-T] Re: Markup Processing Order

Christian Ridderström christian.ridderstrom at gmail.com
Sat Jul 19 17:23:38 CDT 2008


On Fri, 18 Jul 2008, Patrick R. Michaud wrote:

> By the time the markup is being processed, it's too late to do anything 
> useful with $DefaultPageTextFmt.  $DefaultPageTextFmt determines what 
> text (markup) to use if a page doesn't exist -- thus it has to be 
> handled _before_ any markup processing takes place.

> What you may want to do instead is:
>
>    SDV($DefaultPageTextFmt,
>      '(:include {$Group}.pmPageNotFound $[{$SiteGroup}.PageNotFound:)');
 					   ^
That '[' looks suspicsious to me?

> This uses the pmPageNotFound page of the current group if it exists,
> falling back to Site.PageNotFound if it doesn't.

Maybe this could be a recipe otherwise?

/Christian

-- 
Christian Ridderström, +46-8-768 39 44            http://www.md.kth.se/~chr


More information about the pmwiki-devel mailing list