Showing posts with label Import and Export xls for site assets. Show all posts
Showing posts with label Import and Export xls for site assets. Show all posts

Showing "Import" and "Export" options for Site-Admin UI

Showing "Import" and "Export" options for Site-Admin UI

To enable the Import Button & Export Option in Site-Admin UI, please follow below mentioned steps.This can help you to import the xls and export the xls for Site-Assets.

Step 1: Override the taskConfiguration file.
Path: /config/atg/remote/multisite/assetmanager/taskConfiguration.xml

<?xml version="1.0" encoding="ISO-8859-1" ?>

<!DOCTYPE task-configuration
        PUBLIC "-//Art Technology Group, Inc.//DTD Asset Manager Task Configuration//EN"
        "http://www.atg.com/dtds/task-configuration/task-configuration_2.0.dtd">

<task-configuration>
 <task id="siteadmin.manageSiteAssets" inherit-from="siteadmin.browseSiteAssets">
    <activity-id>
      siteadmin.manageSiteAssets
    </activity-id>
      <!-- Enabling the Import Button -->
    <property name="showImportButton" value="true"/>
 </task>
</task-configuration>





Site-Admin UI with "Import" Enabled



Step 2: Override the SiteAdminToolbar with following content.
Path: /config/atg/remote/multisite/toolbar/SiteAdminToolbar.xml

<?xml version="1.0" encoding="ISO-8859-1" ?>

<!DOCTYPE browse-hierarchy
  PUBLIC "-//Art Technology Group, Inc.//DTD Asset Manager Browse Hierarchy//EN"
  'http://www.atg.com/dtds/toolbar/toolbar_1.0.dtd'>

<toolbar
    resource-formatter="/atg/remote/multisite/ResourceFormatter">
      
 <operation-menu id="siteOperationMenu">
    <toolbar-scope asset-area="siteadmin" pane-id="browse"/>
    <operation-menu-item id="export" />
  </operation-menu>

  <operation id="export"        label-resource="toolbar.action.label.export"
                                event="AssetManager.export"
                                active-for-selected-item-count="ONE-OR-MORE"
                                shortcut-resource-bundle="ATGResources"
                                shortcut-resource-key="operation.export.shortcut"
                                shortcut-modifiers="CTRL"/>
</toolbar>


Export XLS for Site Assets