There is a slight bug in xwiki skin.
in editinline.vm please add the following line:
<input type="hidden" name="parent" value="$!request.parent" />
where other  hidden params are added.

I have posted a JIRA issue on the same, but looks like nothing has been done
on this front.

Thanks
Sachin


Message: 6
> Date: Thu, 13 Mar 2008 16:34:47 +0100
> From: "nitin wankhede" <[EMAIL PROTECTED]>
> Subject: Re: [xwiki-devs] Creating Pages based on available Templates
> To: "XWiki Developers" <[email protected]>
> Message-ID:
>        <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hi Sergiu,
>
> Thanks for the information, I understand how NewPage panel works.
> I have created a drop down list of templates and Spaces. Now i want users
> to
> select the template and Space from the drop down while creating new pages.
> While doing this i can create new page with selected parate but new page
> always created in current space.
>
> Do you know why this is happening.
>
> Below is the modified code:
>
>
> #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
>
>
>
>
> On 3/13/08, Sergiu Dumitriu <[EMAIL PROTECTED]> wrote:
> >
> > 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
> > [email protected]
> > http://lists.xwiki.org/mailman/listinfo/devs
> >
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> http://lists.xwiki.org/pipermail/devs/attachments/20080313/5e5e4810/attachment.htm
>
> ------------------------------
>
> _______________________________________________
> devs mailing list
> [email protected]
> http://lists.xwiki.org/mailman/listinfo/devs
>
>
> End of devs Digest, Vol 9, Issue 46
> ***********************************
>
_______________________________________________
devs mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/devs

Reply via email to