I am running 1252 (on Jetty) which seems to be the newest according to http://forge.objectweb.org/project/showfiles.php?group_id=170 . Do you have another link? Version #Fri Jul 07 21:59:04 CEST 2006 build.number=1252 -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of jeremi joslin Sent: November 29, 2006 11:53 AM To: [email protected] Subject: Re: Antwort: [xwiki-users] How can i change/move a xwiki page Hi, Have you tried with the last version? I've fixed this function 2 or 3 weeks ago. If you can't use the last version I can find the revision number for you to fix your XWiki. jeremi On 11/29/06, Lijour, Marc (EDU) <[email protected]> wrote:
Are you doing something like this?
#set($doc = $xwiki.getDocument("TPJ2O", "TestPage").getDocument()) #set($doc = $doc.renameDocument("blabla", $context.getContext()))
The doc seems to be renamed ($doc.getName() shows a new name) but the page is still there and with the same name. Isn't it supposed to be moved (and renamed in the process)?
-----Original Message----- From: THOMAS, BRIAN M (SBCSI) [mailto:[email protected]] Sent: November 27, 2006 12:56 PM To: [email protected] Subject: RE: Antwort: [xwiki-users] How can i change/move a xwiki page
Also, note that XWiki.renameDocument() is a method that requires that the last author of the calling page have the "programming" right on it. A perhaps less-than-obvious implication of this is that regardless of whether the current user has it, it will not work in preview mode if the document was not last saved by a user with that right, including, of course, the case where it was never saved by anyone, so the document must exist.
Haven't thought much about whether this should be considered a bug, but it doesn't seem a straightforward matter. Probably ought to be clearly documented at the least.
brain[sic]
-----Original Message----- From: THOMAS, BRIAN M (SBCSI) Sent: Monday, November 27, 2006 11:25 AM To: [email protected] Subject: RE: Antwort: [xwiki-users] How can i change/move a xwiki page
com.xpn.xwiki.doc.XWikiDocument.renameDocument() is a method that will do what you need done, without worrying about whether
you get all your database ducks in a row. There are bugs that may prevent it from working, but I only encountered them in dealing with user profile documents.
brain[sic]
-----Original Message----- From: Kristian Marinkovic [mailto:[email protected]] Sent: Saturday, November 25, 2006 1:19 PM To: [email protected] Subject: Antwort: [xwiki-users] How can i change/move a xwiki page
Hello folks,
i could solve the problem myself. the key is the fact that the XWD_ID of the XWIKIDOC table is the hashvalue of the documents fullname (space/web + "." + name). Changing the document name is not enough, additional a new XWD_ID key with the new name has to be generated.
greetings kris
[email protected] schrieb: -----
An: [email protected] Von: [email protected] Datum: 24.11.2006 03:32PM Thema: [xwiki-users] How can i change/move a xwiki page
Hello,
my xwiki system has several documents with incorrect names eg.: A.B.C.index should be A.B.D.index
which datafields (and what tables) do i have to change in order to achieve a page move? i tried to modify the xwd_fullname, xwd_web, xwd_parent and xwd_name columns in the XWIKIDOC table but it doesnt work. I also checked the data within XWIKILINKS.
I was also unable to determine where xwiki get its document ids (XWD_ID) at startup. Maybe someone could point me to the correct sources :)
can somebody help me?
g, kris
-- You receive this message as a subscriber of the [email protected] mailing list. To unsubscribe: mailto:[email protected] For general help: mailto:[email protected]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
-- You receive this message as a subscriber of the [email protected] mailing list. To unsubscribe: mailto:[email protected] For general help: mailto:[email protected]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
-- jeremi