[pmwiki-users] Creating multiple pages at once

info at theburroughsproject.com info at theburroughsproject.com
Mon Aug 7 01:35:12 CDT 2006

I'm using the below form to allow users to create a Home Page based on a
template. What I'd like to do is have this form create several pages at
once, each based on a different template. So the way it would happen, a
person would type in "Some Group Name" in the box and click, and it
would create "SomeGroupName.HomePage", "SomeGroupName.GroupHeader" and
"SomeGroupName.GroupFooter", all at once, each one based on a different

Does anyone have any idea how to do this, or if it's even possible to do
it in an HTML form using javascript?

<form class='newpage' action='' method='post'> 
    <input type='hidden' name='n' value='{$Group}.{$Name}' /> 
    <input type='hidden' name='action' value='new' /> 
    <input type='hidden' name='base' value='{$Group}.{$Name}' /> 
    <input type='hidden' name='save' value='true' /> 
    <input type='hidden' name='template' value='Templates.HomePage' />
    <input class='inputbox newpagetext' type='text' name='name'
onfocus="this.value=''" onblur="this.value=this.value+'.HomePage'"
value='' size='30' />
    <input class='inputbutton newpagebutton' type='submit' value='Create
Site' style="background-color: #3C0000; color: #FDEEBB; border-style:
ridge; border-color: #FFFFCC" /></form>

More information about the pmwiki-users mailing list