[pmwiki-users] Re: suggestion for include

chr at home.se chr at home.se
Fri Aug 5 04:57:25 CDT 2005


On Fri, 5 Aug 2005, Hans wrote:

> Friday, August 5, 2005, 9:39:46 AM, Pierre-Marie wrote:
> > We can write (:include GroupName.PageName:)
> > Is it possible to complete the pmwiki-directives with a DefaultPage :
> > (:include GroupName.PageName DefaultGroupName.DefaultPageName:) ??
> 
> (:include:) can only load one specific page, or part of that page.

I think Pierre-Marie means that DefaultGroupName.DefaultPageName should be 
loaded when GroupName.PageName doesn't exist. (Just like it works in the 
templates IIRC).

> I don't think there is a way, using existing markup, to check if a
> specific page exists, or if an (:include Page:) will actually include
> anything. But then I may have missed something in this fast
> development of pmwiki.

What about (:if exist PageName:) ... (:ifend:), I thought that'd work?
(Needs to be checked though)

/Christian


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






More information about the pmwiki-users mailing list