[pmwiki-users] Re: (:include:) like <!--wiki:put_your_pagenames_here-->

Hans design at flutesong.fsnet.co.uk
Thu Aug 18 12:19:35 CDT 2005


Thursday, August 18, 2005, 6:00:44 PM, Bronwyn wrote:
> It might have been the thread where Christian (I think) asked what
> would happen with a line like

> (:include Page1 Page2 Page3 lines=1-10:)

> Which is where I got the idea to try it.  It wasn't a documented use,
> but then, until recently, pagelist wasn't fully documented but no less
> real for all that.

Pm did remark that a syntax like (:include Page1 Page2 Page3:) ought
to mean to include all these pages.

To get a similar effect as <!--wiki:Group.Page1 Group.Page2-->
where Page2 is only loaded if Page1 does not exist you can use
conditional markup (:if exist fullpagename:)

   (:include Group.Page1:)
   (:if !exist Group.Page1:)(:include Group.Page2:)(:ifend:)

Definition (in config.php):

   $Conditions['exists'] = "PageExists(\$condparm)";

(see http://www.pmwiki.org/wiki/Cookbook/ConditionalMarkupSamples)


Best, 
~Hans                           





More information about the pmwiki-users mailing list