#if($hasedit)
#panelheader($msg.get("Create New Page"))
<form method="post" action="$doc.getURL("view","xpage=create")" onsubmit = "cancelCancelEdit()">
<div class="padded centered">
#set($spaces = $xwiki.spaces)
#set($first = true)
<select name="parent" class="panelselect" >
#foreach($space in $spaces)
#if($first)
#set($first = false)
#else
## <span class="pitemseparator">|</span>
#end
#if($space == $doc.web)
<option value=${space}.WebHome>${space}</option>
#else
<option value=${space}.WebHome>${space}</option>
#end
#end
</select>
<select name="template" class="panelselect">
<option value="MySpace.tempClassTemplate">Screen template</option>
<option value="MySpace.Report Template">Report Template</option>
</select>
<div class="padded centered">
<select name="tocreate" class="panelselect">
<option value="page">New Page\*</option>
<option value="space">New Space</option>
<option value="post">New Blog Post</option>
</select>
</div>
<input type="text" name="title" value="Title" class="panelinput" style="margin:auto;" onfocus="if(this.value=='Title') this.value=''" onblur="if(this.value=='') this.value='Title'"/>
</div>
<div class="padded centered" style="text-align:center;">
<input type="submit" class="button" style="margin:auto;" value="$msg.get("create")"/>
</div>
<p style="font-size:0.75em;padding-left:8px;">*New pages are created in current space</p>
</form>
#panelfooter()
#end
nitin wankhede wrote:
> Hi All,
>
> We are building Knowledge managment system for our internal use. We want
> to give an option to user so that he/she can create new page in selected
> space based on templates. I tried modifying the Create New panel by
> adding drop down list of templates and existing spaces
> respectively, however not able to create new pages in selected space
> using available templates. Please reply if you know how to solve this.
>
The panel is just an interface, the real code that creates pages is in
/templates/create.vm (if you're using XE 1.3) or in
/skins/albatross/create.vm
--
Sergiu Dumitriu
http://purl.org/net/sergiu/
_______________________________________________
devs mailing list
devs@xwiki.org
http://lists.xwiki.org/mailman/listinfo/devs