Search: export space

Last modified by s203917 on 2025/09/16 14:43

      

Results 31 - 40 of 2,407 « previous page next page » Page 1 2 3 4 5 6 7 8 9 ... 241

XWiki Enterprise 2.7

Last modified by Thomas Mortagne on 2017/03/24 12:29
Rendered document content
New and Noteworthy (since XWiki Enterprise 2.6) Ability to set a color theme on each space Starting XWiki Enterprise 2.7, we now offer the option to set separate color themes on each space. For setting a color theme on a desired space, you have to go to the space Administration (you need to have admin rights on that space).
Miscellaneous Support search on space name in the REST API. Support for customizing the office export process.
Raw document content
= New and Noteworthy (since XWiki Enterprise 2.6) = == Ability to set a color theme on each space == Starting XWiki Enterprise 2.7, we now offer the option to set separate color themes on each space. For setting a color theme on a desired space, you have to go to the space Administration (you need to have admin rights on that space).
For example: {{code}} [[label>>unc:\\ComputerName\SharedFolder\Resource]] {{/code}} Note that the 2.1 syntax is still marked as //experimental//, and it will continue to change. == Miscellaneous == * Support search on space name in the REST API. * Support for customizing the office export process

IRC Archive for channel #xwiki on 21 September 2013

Located in
Last modified by Vincent Massol on 2013/09/21 23:27
Rendered document content
13:24 <Denis> has quit 13:28 <msmeria> has joined #xwiki 13:30 <msmeria> has quit 13:37 <UCC> has joined #xwiki 15:24 <fmancinelli> has joined #xwiki 15:29 <Denis> has joined #xwiki 16:04 <fmancinelli> has quit 17:06 <abusenius> has joined #xwiki 17:36 <dirk_schmitt> has joined #xwiki 17:38 <dirk_schmitt> May someone please reopen the issue XWIKI-5716 - it is still reproducible in my current 5.1 installation - see my last comment. 18:08 <vmassol> dirk_schmitt: I've reopened it, thanks 18:34 <dirk_schmitt> Thanks also - so just the next bug ;-) 18:35 <dirk_schmitt> I have maybe an Memory Leak in the html export. 18:36 <dirk_schmitt> My xwiki instance was started with 768MB heap space. 18:36 <dirk_schmitt> After 8 html-exports of 2 spaces it fails with an OutOfMemory Exception. 18:36 <dirk_schmitt> Is this well known? 18:44 <vmassol> never heard about this 18:44 <vmassol> FYI thomas is reimplementing import/export 18:49 <Inge-> has anything been done to the code rendering macro since 3.x?
Raw document content
13:24 <Denis> has quit 13:28 <msmeria> has joined #xwiki 13:30 <msmeria> has quit 13:37 <UCC> has joined #xwiki 15:24 <fmancinelli> has joined #xwiki 15:29 <Denis> has joined #xwiki 16:04 <fmancinelli> has quit 17:06 <abusenius> has joined #xwiki 17:36 <dirk_schmitt> has joined #xwiki 17:38 <dirk_schmitt> May someone please reopen the issue XWIKI-5716 - it is still reproducible in my current 5.1 installation - see my last comment. 18:08 <vmassol> dirk_schmitt: I've reopened it, thanks 18:34 <dirk_schmitt> Thanks also - so just the next bug ;-) 18:35 <dirk_schmitt> I have maybe an Memory Leak in the html export. 18:36 <dirk_schmitt> My xwiki instance was started with 768MB heap space. 18:36 <dirk_schmitt> After 8 html-exports of 2 spaces it fails with an OutOfMemory Exception. 18:36 <dirk_schmitt> Is this well known? 18:44 <vmassol> never heard about this 18:44 <vmassol> FYI thomas is reimplementing import/export 18:49 <Inge-> has anything been done to the code rendering macro since 3.x?

IRC Archive for channel #xwiki on 29 September 2014

Located in
Last modified by Vincent Massol on 2014/09/29 23:39
Rendered document content
11:51 <Lyes> has joined #xwiki 11:57 <drbignik> has quit 12:17 <woshilapin> has quit 12:24 <KermitTheFragger> has joined #xwiki 12:24 <Lyes> has quit 12:28 <woshilapin> has joined #xwiki 12:33 <Lyes> has joined #xwiki 12:38 <Lyes> has quit 12:49 <woshilapin> has quit 12:52 <woshilapin> has joined #xwiki 13:02 <AFKGeek> has joined #xwiki 13:52 <OSIMasson> has joined #xwiki 13:58 <AFKGeek> has quit 14:03 <DarkKnightCZ> has quit 14:20 <andreeapopescu> has joined #xwiki 14:51 <AFKGeek> has joined #xwiki 14:51 <DarkKnightCZ> has joined #xwiki 14:51 <andreeapopescu> has left #xwiki 14:55 <msmeria> has quit 15:16 <KermitTheFragger> has quit 15:22 <KermitTheFragger> has joined #xwiki 15:35 <OSIMasson> has quit 15:42 <OSIMasson> has joined #xwiki 16:14 <vmassol> reminder: tommorrow is 6.2.1 release date 16:20 <unfed> has joined #xwiki 16:51 <Enygma`> tmortagne: I just tried to export to XAR a document in the AppWithingMinutes space and I get a lot of these messages in the console: 16:51 <Enygma`> ... 16:51 <Enygma`> ... INFO .i.i.InstanceInputFilterStream - Skipped document [xwiki:AppWithinMinutes.WizardStep] 16:51 <Enygma`> seems like it's "skipping" all the pages in the space, except the one I`m exporting 16:52 <Enygma`> is is a known issue? 16:52 <tmortagne> yes that's how it's working, the only issue here is that you see the log which should not happen 16:53 <tmortagne> how did you exported ? standard export from the document UR ? 16:53 <tmortagne> UI 16:53 <DarkKnightCZ> has quit 16:53 <Enygma`> yes 16:53 <tmortagne> also what version is this ?
Raw document content
11:51 <Lyes> has joined #xwiki 11:57 <drbignik> has quit 12:17 <woshilapin> has quit 12:24 <KermitTheFragger> has joined #xwiki 12:24 <Lyes> has quit 12:28 <woshilapin> has joined #xwiki 12:33 <Lyes> has joined #xwiki 12:38 <Lyes> has quit 12:49 <woshilapin> has quit 12:52 <woshilapin> has joined #xwiki 13:02 <AFKGeek> has joined #xwiki 13:52 <OSIMasson> has joined #xwiki 13:58 <AFKGeek> has quit 14:03 <DarkKnightCZ> has quit 14:20 <andreeapopescu> has joined #xwiki 14:51 <AFKGeek> has joined #xwiki 14:51 <DarkKnightCZ> has joined #xwiki 14:51 <andreeapopescu> has left #xwiki 14:55 <msmeria> has quit 15:16 <KermitTheFragger> has quit 15:22 <KermitTheFragger> has joined #xwiki 15:35 <OSIMasson> has quit 15:42 <OSIMasson> has joined #xwiki 16:14 <vmassol> reminder: tommorrow is 6.2.1 release date 16:20 <unfed> has joined #xwiki 16:51 <Enygma`> tmortagne: I just tried to export to XAR a document in the AppWithingMinutes space and I get a lot of these messages in the console: 16:51 <Enygma`> ... 16:51 <Enygma`> ... INFO .i.i.InstanceInputFilterStream - Skipped document [xwiki:AppWithinMinutes.WizardStep] 16:51 <Enygma`> seems like it's "skipping" all the pages in the space, except the one I`m exporting 16:52 <Enygma`> is is a known issue? 16:52 <tmortagne> yes that's how it's working, the only issue here is that you see the log which should not happen 16:53 <tmortagne> how did you exported ? standard export from the document UR ? 16:53 <tmortagne> UI 16:53 <DarkKnightCZ> has quit 16:53 <Enygma`> yes 16:53 <tmortagne> also what version is this ?

Release Notes for XWiki Enterprise 1.9 Milestone 2

Last modified by Thomas Mortagne on 2017/03/24 12:29
Rendered document content
Typing just the name of a document, without the space, does not open a document in the current space, but in the view space.
It is not possible to enter more than one search term, separated by spaces, since the suggest searches for an exact match of the input string.
A new version will be saved even if no changes occurred since the last autosave. 2 PDF export improvements 1.9M2 adds a few important features and addresses several issues related to the PDF export feature: PDFs now contain a cover page and a table of contents page.
Raw document content
- Typing just the name of a document, without the space, does not open a document in the current space, but in the ~~view~~ space.
- It is not possible to enter more than one search term, separated by spaces, since the suggest searches for an exact match of the input string.
- A new version will be saved even if no changes occurred since the last autosave. 1.1.1 2 PDF export improvements 1.9M2 adds a few important features and addresses several issues related to the PDF export feature: - PDFs now contain a ~~cover page~~ and a ~~table of contents~~ page.

Multipage Export Application

Located in
Last modified by Thomas Mortagne on 2025/08/01 18:05
Title
Multipage Export Application
Objects
It particularly allows you to create a list of pages to export and then run the export. You can automatically concatenate a page with its children, view it in HTML or export it to PDF in one big report.
name : Multipage Export Application
tags : export
Attachment content
xpage=printmulti" method="POST"> <input type="hidden" name="action" value="export" /> <input type="hidden" name="page" value="$!
xpage=printmulti'; this.form.xpage.value='print';" /> $msg.export_exportorprint_HTML <input type="radio" name="type" value="pdf" onclick="this.form.action='Export'; this.form.xpage.value='';" /> $msg.export_exportorprint_PDF <input type="radio" name="type" value="rtf" onclick="this.form.action='Export'; this.form.xpage.value='';" /> $msg.export_exportorprint_RTF <input type="radio" name="type" value="xarwithversions" onclick="this.form.action='Export'; this.form.xpage.value='';" /> $msg.export_exportorprint_XARWITHVERSIONS <input type="radio" name="type" value="xarwithoutversions" onclick="this.form.action='Export'; this.form.xpage.value='';" /> $msg.export_exportorprint_XARWITHOUTVERSIONS <br /> <span class="buttonwrapper"><input type="submit" value="$msg.export_exportorprint_button_export" /></span> </form> </div> </div> #else <div class="export_to_print_box"> 1 $msg.export_exportorprint_title $msg.export_exportorprint_description : {pre} <form action="" method="POST"> #set($pdfpages = "") #set($treelist = $mpexport.getLinksTreeList($docName)) #set($selectlist = $xwiki.arrayList) #foreach($treeitem in $treelist) #set($ok = $selectlist.add($treeitem.id)) #set($pdfpages = "${pdfpages}|${treeitem.id}") #end #if($request.debug=="1") #end #set($fieldname = "pdfpages") #set($tree = $xwiki.parseTemplate("treeview.vm")) $tree <div class="export_to_print_buttons"> <input type="hidden" name="action" value="export" /> <input type="hidden" name="page" value="$!
{request.pagebc}")) #end #set($printurljs = $cplugin.escapeForJS($printurl)) <div class="export_to_print_buttons"> <form name="export" action="$printurl" method="POST"> <input type="hidden" name="page" value="$!

IRC Archive for channel #xwiki on 20 May 2015

Located in
Last modified by Vincent Massol on 2015/05/20 23:03
Rendered document content
<vmassol> has quit 01:04 <xwikibot> has joined #xwiki 03:03 <MasterPiece> has quit 03:42 <martin-h> has quit 04:14 <martin-h> has joined #xwiki 04:39 <sdumitriu> has quit 04:54 <sdumitriu> has joined #xwiki 06:01 <Denis2> has joined #xwiki 06:03 <Denis> has quit 06:47 <mflorea> has joined #xwiki 07:13 <DarkKnightCZ> has joined #xwiki 08:16 <silverdrop> has joined #xwiki 08:16 <MasterPiece> has joined #xwiki 08:23 <tmortagne> has joined #xwiki 08:24 <msmeria> has joined #xwiki 08:30 <KermitTheFragger> has joined #xwiki 08:44 <MasterPiece> has quit 08:48 <vmassol> has joined #xwiki 08:53 <vmassol1> has joined #xwiki 08:54 <vmassol> has quit 08:54 <vmassol1> has quit 08:54 <vmassol> has joined #xwiki 09:10 <msmeria1> has joined #xwiki 09:12 <msmeria> has quit 09:13 <msmeria1> is now known as <msmeria> 09:17 <msmeria1> has joined #xwiki 09:18 <msmeria> has quit 09:20 <Slashman> has joined #xwiki 09:22 <gsmeria> has joined #xwiki 09:25 <msmeria1> has quit 09:28 <msmeria> has joined #xwiki 09:34 <evalica> has quit 09:34 <evalica1> has joined #xwiki 09:57 <gdelhumeau> has joined #xwiki 09:57 <cjd> has joined #xwiki 10:15 <gdelhumeau> has quit 10:22 <cjd> has quit 10:29 <gdelhumeau> has joined #xwiki 10:32 <cjd> has joined #xwiki 10:38 <cjd> has quit 10:38 <cjd> has joined #xwiki 10:38 <martin-h> Hi there, we're facing an OutOfMemory issue (heap space) when deleting a Space in xwiki 6.4.4. The space can be exported with success as XAR (85MB), but can't be deleted.
If not I'll increase heap space size... 10:40 <tmortagne> export is actually much better than delete around memory handling right now especially if you have some documents with big attachments 10:40 <tmortagne> the issue is that it load in memory each document before deleting it so sometime it can be expensive while export is fully streamed 10:40 <cjd> do you have FS attachments enabled? 10:41 <tmortagne> probably not 10:41 <martin-h> not 10:41 <martin-h> hi cjd , nice to see you ;) 10:41 <tmortagne> that would improve this memory handling round attachment a lot 10:41 <cjd> if so, just delete the big attachments (they're recoverable) and only then delete the document, as I recall that fixes the bug 10:41 <tmortagne> s/round/around/ 10:41 <cjd> also hi... 10:41 <tmortagne> yes deleting each attachment separately usually helps 10:42 <cjd> the bug is that it tries to "export" the document into memory to put it in the document trash, that breaks even with FS attachments 10:42 <martin-h> but 85M is not that big !?
Raw document content
<vmassol> has quit 01:04 <xwikibot> has joined #xwiki 03:03 <MasterPiece> has quit 03:42 <martin-h> has quit 04:14 <martin-h> has joined #xwiki 04:39 <sdumitriu> has quit 04:54 <sdumitriu> has joined #xwiki 06:01 <Denis2> has joined #xwiki 06:03 <Denis> has quit 06:47 <mflorea> has joined #xwiki 07:13 <DarkKnightCZ> has joined #xwiki 08:16 <silverdrop> has joined #xwiki 08:16 <MasterPiece> has joined #xwiki 08:23 <tmortagne> has joined #xwiki 08:24 <msmeria> has joined #xwiki 08:30 <KermitTheFragger> has joined #xwiki 08:44 <MasterPiece> has quit 08:48 <vmassol> has joined #xwiki 08:53 <vmassol1> has joined #xwiki 08:54 <vmassol> has quit 08:54 <vmassol1> has quit 08:54 <vmassol> has joined #xwiki 09:10 <msmeria1> has joined #xwiki 09:12 <msmeria> has quit 09:13 <msmeria1> is now known as <msmeria> 09:17 <msmeria1> has joined #xwiki 09:18 <msmeria> has quit 09:20 <Slashman> has joined #xwiki 09:22 <gsmeria> has joined #xwiki 09:25 <msmeria1> has quit 09:28 <msmeria> has joined #xwiki 09:34 <evalica> has quit 09:34 <evalica1> has joined #xwiki 09:57 <gdelhumeau> has joined #xwiki 09:57 <cjd> has joined #xwiki 10:15 <gdelhumeau> has quit 10:22 <cjd> has quit 10:29 <gdelhumeau> has joined #xwiki 10:32 <cjd> has joined #xwiki 10:38 <cjd> has quit 10:38 <cjd> has joined #xwiki 10:38 <martin-h> Hi there, we're facing an OutOfMemory issue (heap space) when deleting a Space in xwiki 6.4.4. The space can be exported with success as XAR (85MB), but can't be deleted.
If not I'll increase heap space size... 10:40 <tmortagne> export is actually much better than delete around memory handling right now especially if you have some documents with big attachments 10:40 <tmortagne> the issue is that it load in memory each document before deleting it so sometime it can be expensive while export is fully streamed 10:40 <cjd> do you have FS attachments enabled? 10:41 <tmortagne> probably not 10:41 <martin-h> not 10:41 <martin-h> hi cjd , nice to see you ;) 10:41 <tmortagne> that would improve this memory handling round attachment a lot 10:41 <cjd> if so, just delete the big attachments (they're recoverable) and only then delete the document, as I recall that fixes the bug 10:41 <tmortagne> s/round/around/ 10:41 <cjd> also hi... 10:41 <tmortagne> yes deleting each attachment separately usually helps 10:42 <cjd> the bug is that it tries to "export" the document into memory to put it in the document trash, that breaks even with FS attachments 10:42 <martin-h> but 85M is not that big !?

space

Last modified by Lucas Charpentier (Sereza7) on 2024/07/11 17:36
Title
space
Objects
Iconname : space

ReleaseNotesXWiki10RC2

Last modified by Thomas Mortagne on 2017/03/24 12:29
Rendered document content
Changes from 1.0 RC 1 Several important bugs fixed: PDF generation fails if a header text is repeated due to TOC numbering in headings Filter conflict: external links can be rendered two times Generated heading id-s are not unique Save & Continue button switches you from the Global Rights tab to the Preferences tab Levels and Users properties are saved with an extra empty value Fail to import a XAR exported with history Calling $xwiki.refreshLinks() do not seem to generate backlinks for all pages XML content inside {code} macro is rendered in the WYSIWYG editor Bug when deleting attachment with accent with XWiki in UTF-8 encoding Empty groups on XWiki.XWikiAllGroup, XWiki.XWikiAdminGroup and XWiki.XWikiGroupTemplate Empty rights in Global Rights and in some spaces Missing PDF templates for new PDF export configuration feature Edition of a user do not show empty fields any more Only if in the style macro has icon parameter then apply stylemacro class for the default value of class parameter.
Raw document content
#toc("" "" "") 1.1 Changes from 1.0 RC 1 * Several important bugs fixed: ** PDF generation fails if a header text is repeated due to TOC numbering in headings ** Filter conflict: external links can be rendered two times ** Generated heading id-s are not unique ** Save & Continue button switches you from the Global Rights tab to the Preferences tab ** Levels and Users properties are saved with an extra empty value ** Fail to import a XAR exported with history ** Calling \$xwiki\.refreshLinks\() do not seem to generate backlinks for all pages ** XML content inside \{code\} macro is rendered in the WYSIWYG editor ** Bug when deleting attachment with accent with XWiki in UTF-8 encoding ** Empty groups on XWiki.XWikiAllGroup, XWiki.XWikiAdminGroup and XWiki.XWikiGroupTemplate ** Empty rights in Global Rights and in some spaces ** Missing PDF templates for new PDF export configuration feature ** Edition of a user do not show empty fields any more ** Only if in the style macro has icon parameter then apply stylemacro class for the default value of class parameter.
Start by backuping your wiki by doing an export or backuping your database. Then import that XAR into your wiki (be sure to be logged as an Admin) and then go to the Admin.CryptPasswords and follow the instructions there.")

Export

Located in
Last modified by Guillaume Lerouge on 2012/11/28 16:50
Title
Export
Raw document content
#set($action = $request.action) #if ($action == "getdocs") $response.setContentType("text/xml") #set($space = $request.spacename) <response> #set($docs = $xwiki.searchDocuments("where doc.web='$request.spacename' order by doc.date desc")) #foreach ($docname in $docs) <value>$xwiki.getXMLEncoded("${docname}")</value> #end </response> #elseif ($action == "getPackageList") $response.setContentType("text/xml") #set($alist = $doc.getAttachmentList()) <response> #foreach ($oAttach in $alist) <value>$oAttach.getFilename()</value> #end </response> #elseif ($action == "preexport") #set($ToExport = $request.getParameterValues("toExport")) #set($session = $request.getSession(false)) #set($ok = $session.setAttribute("exportdata", $ToExport)) OK #elseif ($action == "export") #set($session = $request.getSession(false)) #set($ToExport = $session.getAttribute("exportdata")) #set($withHistory = $request.withHistory) #set($author = $request.author) #set($description = $request.description) #set($licence = $request.licence) #set($version = $request.version) #set($packageName = $request.packageName) #set($export = $xwiki.package) #if ($withHistory=="true") $export.setWithVersions(true) #else $export.setWithVersions(false) #end #if ($author) $export.setAuthorName($author) #end #if ($description) $export.setDescription($description) #end #if ($licence) $export.setLicence($licence) #end #if ($version) $export.setVersion($version) #end $export.setName($packageName) #foreach ($itemexp in $ToExport) $export.add($itemexp, 0) #end $export.export() #else {pre} <style type="text/css"> .main table tr td.td-docSelectorColumn, .main table tr td.td-selectedColumn,, .main table tr td.td-packageColumn { vertical-align: top; } #spaceDocs, #selectedDocs { height: 400px; overflow-y: scroll; } </style> <div id="exportApp"> <table style="width:100%; border-color:blue; border-spacing: 0; " border="0"> <tr> <td class="td-docSelectorColumn"><h3 style="text-align:center;" id="firstColumnTitle">Your Wiki</h3> <span id="spaceSelectorEl"> Select a Space: #set($spaces = $xwiki.getSpaces()) <select name="spaceSelector" id="spaceSelector"> <option value="---">---</option> #foreach ($space in $spaces) <option value="$space">$space</option> #end </select> <br /> #set($script = $xwiki.getURL("Admin.ExportSpaceSuggest", "view", "xpage=rdf")) <form action="" onsubmit="setSpace(this.space.value); return false;"> Search space: <input type="text" name="space" value="" size="20" onfocus="new ajaxSuggest(this, {script:'${script}&amp;', varname: 'input', seps:'', offsety: 13});" /> <input type="submit" value="Go" /> </form> <br /> <span class="selectDocsActions">Select <a onclick="selectItems('checkedDoc', false);" class="Exportlink">none</a>, <a onclick="selectItems('checkedDoc', true);" class="Exportlink">all</a></span></span> </td> <td class="td-selectedColumn"><h3 style="text-align:center;" id="secondColumnTitle">Your Package</h3> <span class="selectDocsActions">Select <a onclick="selectItems('selCheckedDoc', false);" class="Exportlink">none</a>, <a onclick="selectItems('selCheckedDoc', true);" class="Exportlink">all</a></span> </td> <td class="td-packageColumn"> <h3 style="text-align:center;" id="secondColumnTitle">Package Info</h3> </td> </tr> ## ROW 2 <tr> <td class="td-docSelectorColumn"> <div id="docSelectorColumn"> <div id="spaceDocs"> <span id="noSelectedSpace"><br /><br />Start by choosing a space to list documents</span> </div> </div> </td> <td class="td-selectedColumn"> <div id="selectedColumn"> <div id="spaceDocs"> <table> <tbody id="selectedDocsTable"> </tbody> </table> </div> </div> </td> <td class="td-packageColumn"> <label for="appName"><i>Package Name</i></label><br /><input type="text" name="appName" id="appName" value="package"><br /><br /> <label for="appDesc"><i>Description</i></label><br /><textarea name="appDesc" id="appDesc"></textarea><br /><br /> <label for="appLicence"><i>Licence</i></label><br /><input type="text" name="appLicence" id="appLicence" value="LGPL"><br /><br /> <label for="appAuthor"><i>Author</i></label><br /><input type="text" name="appAuthor" id="appAuthor" value="$context.user"><br /><br /> <label for="appVersion"><i>Version</i></label><br /><input type="text" name="appVersion" id="appVersion" value=""><br /><br /> <span id="historyEls"> <label for="appWithHistory"><i>Add history</i><input type="checkbox" name="appWithHistory" id="appWithHistory" value="true"></label> <br /><br /> </span> </td> </tr> ## ROW 3 <tr> <td class="td-docSelectorColumn" style="text-align: center;"><input type="button" onclick="addDocs();" id="bttAdd" value="Add to my package &gt;&gt;"/></td> <td class="td-selectedColumn" style="text-align: center;"><input type="button" onclick="deleteDocs();" id="bttAdd" value="&lt;&lt; Remove from my package"/></td> <td class="td-packageColumn" style="text-align: center;"><input type="button" id="bttExport" onclick="bttExport()" value="Export" style=""/></td> </tr> </table> </div> <script type="text/javascript"> Ajax.XWikiRequest = Class.create(Ajax.Request, { initialize: function($super, space, docName, options, action) { this.transport = Ajax.getTransport(); if (action) this.action = action; else this.action = "view"; this.baseUrl = "/xwiki/bin/" + this.action; options = Object.clone(options); var onComplete = options.onComplete || Prototype.emptyFunction; options.onComplete = (function() { this.returnValue(onComplete); //onComplete(this.transport); }).bind(this); $super(this.generateUrl(space, docName), options); }, generateUrl: function(space, docName){ return this.baseUrl + "/" + space + "/" + docName; }, returnValue: function(callBack) { if (callBack) callBack(this); else alert("error, callback"); } }); //declaring the class var SelectWatcher = Class.create(); //defining the rest of the class implmentation SelectWatcher.prototype = { initialize: function(selBox, callBack) { this.selBox = $(selBox); //assigning our method to the event this.selBox.onchange = callBack.bindAsEventListener(this); } }; var watcher = new SelectWatcher("spaceSelector", selectOptionCallBack); function selectOptionCallBack(evt) { setSpace(this.selBox.options[this.selBox.selectedIndex].value); } function setSpace(space) { var pars = "action=getdocs&spacename=" + space + "&xpage=rdf"; var myAjax = new Ajax.XWikiRequest( "$doc.web", "$doc.name", {method: 'get', parameters: pars, onComplete: showDocs} ); } function showDocs(res) { var tableName = "listTable"; var tableEl = $(tableName); if (tableEl) Element.remove(tableName); createTable(tableName, "spaceDocs"); var xml = res.transport.responseXML; var docNodes = xml.getElementsByTagName("value"); var noSelectedEl = $("noSelectedSpace"); if (noSelectedEl&&noSelectedEl.parentNode) noSelectedEl.parentNode.removeElement(noSelectedEl); for (var i = 0; i < docNodes.length; i++) { insertTableRow(tableName, docNodes[i].firstChild.data, "doc"); } } function showImportList() { var pars = "action=getPackageList&xpage=rdf"; var myAjax = new Ajax.XWikiRequest( "$doc.web", "$doc.name", {method: 'get', parameters: pars, onComplete: showPackageList} ); } function showPackageList(res) { var tableName = "listTable"; var tableEl = $(tableName); if (tableEl) Element.remove(tableName); createTable(tableName, "spaceDocs"); var xml = res.responseXML; var packageNodes = xml.getElementsByTagName("value"); for (var i = 0; i < packageNodes.length; i++) { insertTableRow(tableName, packageNodes[i].firstChild.data, "pack"); } } function createTable(id, parent){ $(parent).innerHTML = "<table id=" + id + "></table>"; } function insertTableRow(id, name, type){ if (type == "doc") new Insertion.Bottom(id, "<tr><td>" + name + "</td><td><input type='checkbox' value='"+name+"' id='check_" + name + "' class='checkedDoc'/></td></tr>"); else if (type == "pack") new Insertion.Bottom(id, "<tr><td><a onclick='selectPackage(\""+ name +"\")' class='Exportlink'>" + name + "</a></td></tr>"); } function insertNewSelectedDoc(id, value) { insertNewDoc(id, value, 0) } function insertNewDoc(id, value) { new Insertion.Bottom(id, "<tr class='selCheckedTR' id='tr_" + value + "'><td><input type='checkBox' value='" + value + "' class='selCheckedDoc' id='" + value + "' /><span id='" + value + "' class='exportDocName'>" + value + "</span></td></tr>"); } function deleteDocs() { var docs = document.getElementsByClassName("selCheckedDoc"); var i; for (i = docs.length-1; i >= 0; i--) { var doc = docs[i]; if (doc.checked) Element.remove(doc.parentNode.parentNode); } } function addDocs() { var docs = document.getElementsByClassName("checkedDoc"); var i; for (i = 0; i < docs.length; i++) { var doc = docs[i]; if (doc.checked == true) insertNewSelectedDoc("selectedDocsTable", doc.value) } } var exporturl = ""; function bttExport() { var docs = document.getElementsByClassName("exportDocName"); var i; // url used after the post call is made to post the list of pages exporturl = "?action=export&withHistory=" + $F("appWithHistory") + "&version=" + $F("appVersion") + "&author=" + $F("appAuthor") + "&description=" + $F("appDesc") + "&licence=" + $F("appLicence") + "&packageName=" + $F("appName"); var pars = "action=preexport&xpage=rdf"; for (i = 0; i < docs.length; i++) { var docname = docs[i].innerHTML; pars = pars + "&toExport=" + docname; } var myAjax = new Ajax.XWikiRequest( "$doc.web", "$doc.name", {method: 'post', parameters: pars, onComplete: bttExportComplete } ); } function bttExportComplete(xmlResponse) { window.location = exporturl; } function selectItems(classId, selected) { var docs = document.getElementsByClassName(classId); var i; for (i = 0; i < docs.length; i++) { var doc = docs[i]; doc.checked = selected; } } function getXmlValue(tag, xml) { var nodes = xml.getElementsByTagName(tag); if (nodes.length > 0 && nodes[0].firstChild) return nodes[0].firstChild.data; else return ""; } </script> {/pre} #end
RSS feed for search on [export space]

Get Connected