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)
  <option value="$spacesText.get($space)" #if($selectspace == 
$spacesText.get($space))selected="selected"#end>$space</option>
#end

#macro(spaceselect $selectspace $spaces $spacesText)
  <select name="space">
    #spaceoption("All" $selectspace $spacesText)
    #foreach($space in $spaces)
      #spaceoption($space $selectspace $spacesText)
    #end
  </select>
#end

<form action="">
  {pre}
    <div class="centered">
      Space #spaceselect($space $spaces $spacesText) <input type="submit" 
value="Export"/>
    </div>
  {/pre}
</form>

#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/"))
<a href="$parametros">Exportar</a>
#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

Reply via email to