Re: [xwiki-users] Export Spaces
Say thanks to someone of the website of itaca where i found the source code ;-) -Message d'origine- De : users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] De la part de Hesediel Envoyé : lundi 27 avril 2009 11:34 À : users@xwiki.org Objet : Re: [xwiki-users] Export Spaces Hi Christophe, First of all, thanks for this quick answer :-). Your code works well in order to save a whole space. There is one but : it only works with Xwiki 1.0. In XE 1.8.1, the conversion of your code in Xwiki2.0 doesn't work. It must be a problem whith macros you use in it. Anyway, thanks for all, it really helps me. Hesediel. -- View this message in context: http://n2.nabble.com/Export-Spaces-tp2723943p2724310.html Sent from the XWiki- Users mailing list archive at Nabble.com. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users This e-mail is intended only for the addressee named above. It does not bind the sender, except in the case of an existing written convention with the addressee. This e-mail may contain material that is confidential and privileged for the sole use of the intended recipient. Any review, reliance or distribution by others or forwarding without express permission is strictly prohibited and may be unlawful. If you are not the intended recipient, please contact the sender and delete all copies. While reasonable precautions have been taken to ensure that this e-mail and any attachments are free from any computer virus or similar defect, no liability will be accepted in that respect. Anyone accessing this e-mail must take their own precautions as to security and virus protection. KBL European Private Bankers S.A., 43 boulevard Royal L-2955 Luxembourg, R.C.S. Luxembourg B 6395, T (352) 47 97 1 ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Export Spaces
Hi Christophe, First of all, thanks for this quick answer :-). Your code works well in order to save a whole space. There is one but : it only works with Xwiki 1.0. In XE 1.8.1, the conversion of your code in Xwiki2.0 doesn't work. It must be a problem whith macros you use in it. Anyway, thanks for all, it really helps me. Hesediel. -- View this message in context: http://n2.nabble.com/Export-Spaces-tp2723943p2724310.html Sent from the XWiki- Users mailing list archive at Nabble.com. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Export Spaces
Hi, I got same problem than you with space export application (Unable to select documents after selecting a space) So i created a new page with this code in it : - #if(!$request.space) #set($space = "All") #else #set($space = $request.space) #end #set($spacesText = {}) #set($spaces = $xwiki.spaces) #set($ok = $spacesText.put("All","All")) #foreach($space in $spaces) #set($ok = $spacesText.put($space,$space)) #end #macro(spaceoption $space $selectspace $spacesText) $space #end #macro(spaceselect $selectspace $spaces $spacesText) #spaceoption("All" $selectspace $spacesText) #foreach($space in $spaces) #spaceoption($space $selectspace $spacesText) #end #end {pre} Space #spaceselect($space $spaces $spacesText) {/pre} #if ($request.space) 1.1 List of docs that will be Exported #set($parametros = "?format=xar&history=false&name="+$space) #foreach ($item in $xwiki.getSpaceDocsName($request.space)) * $item #set( $parametros = $parametros + "&pages=" + $space + "." + $item ) #end #set( $parametros=$doc.getURL("export")+$parametros ) #set( $parametros=$parametro.toString.replace("/view/","/export/")) Exportar #end - Hope it helps -Message d'origine- De : users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] De la part de Hesediel Envoyé : lundi 27 avril 2009 11:10 À : users@xwiki.org Objet : [xwiki-users] Export Spaces Hi everyone, I've tried another solution in order to solve my problem of exporting a few spaces/pages. The solution is to use the API in xwiki. In order to import a few pages, I modify the url like this : export/Panels/SpaceName?format=xar&name=Panels.v1&pages=Panels.Panels%E8&pages=Panels.Panels2%E8 With that, I've a xar containing the folder Panels and the file package.xml. In the folder Panels, I have my two pages and there is no problems to import them in xwiki. My question is : Which argument have I to set in order to save a whole space ? I've tried spaces but it didn't work. Thanks in advance, Hesediel. -- View this message in context: http://n2.nabble.com/Export-Spaces-tp2723943p2723943.html Sent from the XWiki- Users mailing list archive at Nabble.com. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users This e-mail is intended only for the addressee named above. It does not bind the sender, except in the case of an existing written convention with the addressee. This e-mail may contain material that is confidential and privileged for the sole use of the intended recipient. Any review, reliance or distribution by others or forwarding without express permission is strictly prohibited and may be unlawful. If you are not the intended recipient, please contact the sender and delete all copies. While reasonable precautions have been taken to ensure that this e-mail and any attachments are free from any computer virus or similar defect, no liability will be accepted in that respect. Anyone accessing this e-mail must take their own precautions as to security and virus protection. KBL European Private Bankers S.A., 43 boulevard Royal L-2955 Luxembourg, R.C.S. Luxembourg B 6395, T (352) 47 97 1 ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Export Spaces
Hi everyone, I've tried another solution in order to solve my problem of exporting a few spaces/pages. The solution is to use the API in xwiki. In order to import a few pages, I modify the url like this : export/Panels/SpaceName?format=xar&name=Panels.v1&pages=Panels.Panels%E8&pages=Panels.Panels2%E8 With that, I've a xar containing the folder Panels and the file package.xml. In the folder Panels, I have my two pages and there is no problems to import them in xwiki. My question is : Which argument have I to set in order to save a whole space ? I've tried spaces but it didn't work. Thanks in advance, Hesediel. -- View this message in context: http://n2.nabble.com/Export-Spaces-tp2723943p2723943.html Sent from the XWiki- Users mailing list archive at Nabble.com. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users