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



7 comments:

  1. Hi, Can you do a writeup on how to import delta product/item data into ATG CA . In production systems the product data would be mastered outside & would change on a daily basis. This delta feed would need to be imported to ATG CA (the pub database) & then deployed to the production database. My question is on how to import delta data into ATG CA/BCC? Do we have to write custom code or is there anything out of the box? If its out of the box how does it trap errors & report.

    ReplyDelete
  2. Thanks for sharing import/export functionality in ATG but as per oracle they dont recommend the use of export/import for Site functionality.

    ReplyDelete
    Replies
    1. I completely agree with it. Exporting the xls can be for understanding the Site's statics for quick view, and for those who didn't had BCC access.

      Delete
  3. Hi, is there a way to disable the menu items? if i would remove the "duplicate" or "delete" item how can i do it?

    ReplyDelete
  4. By any chance does anybody know if there are set of event listeners for the event mentioned in toolbar.xml ? The above settings dont seem to work in ATG 11.0

    The export button appears but clicking on it leads to a message saying Selected assets are not exportable. No errors in the logs.

    ReplyDelete
    Replies
    1. Do you find the reason why we are not able use export in SiteAdministration. Did you fix this one.

      Delete
  5. Please let me know how we can add the export option for External Users (profile) in BCC

    ReplyDelete