export-space



export-space

Creates a button on the current page that when clicked exports all pages in the space.

Parameters:
type (required): The output type of the export, can ONLY be XML, HTML or PDF
Macro has a body: Macro does not have a body
Body type: Use unprocessed macro body
Macro Output: Macro generates HTML markup
Macro Body:

#if($paramtype== "XML" || $paramtype== "PDF" || $paramtype== "HTML" )
    <form name="exportspaceform" method="post" action="$req.contextPath/spaces/doexportspace.action?key=$space.key">
        <input type="hidden" name="type" value="TYPE_$paramtype"/> 
        <input type="hidden" name="includeComments" value="true"/>
        #foreach ($page in $space.pages)
            <input type="hidden" name="contentToBeExported" value="$page.id"/>
        #end
        <input type="submit" name="Export Space as $paramtype" value="Export Space as $paramtype" />
    </form>
#else
    <span class="error">Error using macro: "type" is required and can only be XML, HTML or PDF</span>
#end

Required Plugins:

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.