[pmwiki-users] Looking for a recipe I can steal -- Create a page with no user interaction.

Hans Bracker hans.bracker at googlemail.com
Tue Aug 1 11:36:53 CDT 2006

> > Am I right in thinking that if I enable the AutoGroupPages option in
> > my config, then I can't use the newgroupbox in the original way - for
> > instance, I can't, in some other place in the same wiki, put a box
> > (:newgroupbox base=Index template=Site.IndexTemplate:)
> > ?
> Well you can do that, and it will create the page NewGroup.Index with
> content from IndexTemplate, but it will also create all the other
> pages in the new group!
> maybe this si not too friendly, and I should restrict AutoGroupPages somewhat.
> autogrouppages get also created if you don't use newgroupbox, and are
> creating a new page in a new group manually.

I updated newgroupbox.php to integrate Autogrouppages better.
See http://www.pmwiki.org/wiki/Cookbook/NewGroupBox
There is no more variable $EnableAutoGroupPages.
Instead there is the markup option autogroup=true, which you add to
the (:newgroupbox:) markup. so you write:
(:newgroupbox autogroup=true save=true:)
and provide the relevant template pages and the $AutoGroupPagesFmt
array as before.

Now you can use the newgroupbox without the automatic page creation,
autogrouppages only gets used when the markup option is specified. I
think this will work better.


More information about the pmwiki-users mailing list