Re: [xwiki-devs] change parent
I had faced similar issue and I hope you are also talking about the same. I had reported this on one of the threads. There is a slight bug in one of their vm templates in albatross skin. in editinline.vm please add the following line: <input type="hidden" name="parent" value="$!request.parent" /> I think they should fix this in the svn. Thanks Sachin
Message: 8 Date: Mon, 21 Jan 2008 16:09:48 +0100 From: "Raffaele Viola" <[email protected]> Subject: [xwiki-devs] change parent To: [email protected], xwiki <[email protected]> Message-ID: <[email protected]> Content-Type: text/plain; charset="iso-8859-1"
Hi all,
I create a page to change the parent to a chosen page using:
#set ($mydoc = $xwiki.getDocument("some.page")) $mydoc.setParent($targetdoc) $mydoc.save()
It works but in the tree page I see the changed page into its original tree location.
What is my fault ??
Thanks Raffo
Hi Sachin, On Jan 22, 2008, at 5:42 AM, sachin mittal wrote:
I had faced similar issue and I hope you are also talking about the same. I had reported this on one of the threads.
There is a slight bug in one of their vm templates in albatross skin.
in editinline.vm please add the following line: <input type="hidden" name="parent" value="$!request.parent" />
I think they should fix this in the svn.
I'll gladly apply your patch if you can create or point me to a JIRA issue about it. If you could explain the reason why this line is needed in the jira issue that would be great :) Thanks -Vincent
Message: 8 Date: Mon, 21 Jan 2008 16:09:48 +0100 From: "Raffaele Viola" < [email protected]> Subject: [xwiki-devs] change parent To: [email protected], xwiki <[email protected] > Message-ID: <[email protected]> Content-Type: text/plain; charset="iso-8859-1"
Hi all,
I create a page to change the parent to a chosen page using:
#set ($mydoc = $xwiki.getDocument("some.page")) $mydoc.setParent($targetdoc) $mydoc.save()
It works but in the tree page I see the changed page into its original tree location.
What is my fault ??
Thanks
I have created XWIKI-2024 for the same. http://jira.xwiki.org/jira/browse/XWIKI-2024 Thanks Sachin vmassol wrote:
Hi Sachin,
On Jan 22, 2008, at 5:42 AM, sachin mittal wrote:
I had faced similar issue and I hope you are also talking about the same. I had reported this on one of the threads.
There is a slight bug in one of their vm templates in albatross skin.
in editinline.vm please add the following line: <input type="hidden" name="parent" value="$!request.parent" />
I think they should fix this in the svn.
I'll gladly apply your patch if you can create or point me to a JIRA issue about it. If you could explain the reason why this line is needed in the jira issue that would be great :)
Thanks -Vincent
-- View this message in context: http://www.nabble.com/change-parent-tp14999486p15016276.html Sent from the XWiki- Dev mailing list archive at Nabble.com.
participants (3)
-
sachin mittal -
Sachn Mittal -
Vincent Massol