Page Bulk Edit in Adobe Experience Manager 6.1

0

AEM 6.1 has a new bulk edit feature for page properties that is easy to use, but probably not a feature most users will stumble upon on their own. It is hidden in plain site.

The basic idea is this: select two or more pages in the page list view and a View Properties link appears. Follow that link and you will be in a properties view for all of the selected pages. Currently, there’s not much to see there. But follow the Edit link on that page and you will be able to edit properties for all of the selected pages at one time. Pretty cool.

In this iteration there are some qualifications.

  • Live copies cannot be edited in this way
  • The View Properties link will only appear if the pages are the same resource type. The reason is that bad things can happen if items are edited and there is not a matching field
  • The properties that can be edited by default are limited
  • Touch-Optimized UI only

 

Using the Page Bulk Editor

The experience level necessary for using bulk editing is basic. It requires only familiarity with navigating the Touch-Optimized UI and switching from card view to list view. The Adobe Experience Manager 6.1 documentation has instructions for the use of Touch-Optimized UI with page authoring.

NOTE: these screen shots link to a larger view. Click or touch to expand display.

The first step is to start with the Touch-Optimized UI list view for pages. The original Geometrixx site works well to test with . It does not live copies on the top level and the pages on the top level all have the same resource type.

image01Select two or more pages. If the pages can be edited together, the View Properties link appears. There are two reason the link will not appear. If any of the pages selected are live copies they cannot be bulk edited. If the pages selected don’t have the same resource type they cannot be bulk edited.

image02

Following the View Properties link leads to a nondescript page with the selected pages listed. On this page is the Edit link. Following that link leads to the bulk edit screen.

image03

On the bulk edit screen there are one or more tabs. Only tabs are displayed for which there are properties that can be bulk edited. By default, there is a basic tab and the advanced tab.

image04

Once done with editing, follow the Done link to save the changes or follow the Cancel link to leave the edit screen without making changes. When changed, a field that is not a multifield will replace the value on all of the selected pages with the new value. If it is a multifield, any changes are appended to the end of existing values of each page.

image05

The next screen shot shows you what happens when pages that cannot be edited are selected. In this case, the selected pages are live copies. Notice that the View Properties link does not appear.
noedit

 

Quick Example of How to Add a Custom Field

When evaluating bulk editing, I created a new tab in the Foundation Page Component’s dialog and, to that tab, added a single field that could be bulk edited. This requires the knowing how to edit a Touch-Optimized UI component dialog.

To create the new tab and field, override the Page Component’s dialog within the apps directory. I made a copy of an existing editable value and put it within my custom tab of the page editing dialog. My tab is called Custom.

custom01

I called the dialog field I added Metadata. Note that the field for the dialog has a property called allowBulkEdit set to true. When the bulk editor opens, it will walk through the component tree of the page and find all dialogs with this value.

custom02

When I open pages in the bulk edit, my tab and custom value are there.

custom03Conclusion

Bulk editing seems deceptively simple but the logic needed in the background can be complex. The current limitation of bulk editing to pages that are not live copies and the same resource type simplifies the implementation a great deal. One complexity that the developer must take into account is the fact that a property can have different values on each of the selected pages. For the bulk editing UI this must be accounted for.

Resources

See Configuring your Page for Bulk Editing of Page Properties in the Adobe Experience Manager 6.1 Documentation.

 

About The Author

Deke departed Southern Alabama as a young man, leaving the humidity and fire ants behind. The fire ants are catching up with him. He works for Adobe. Despite that, his opinions expressed on this site are his own and should never, ever, be attributed or blamed on Adobe. Ask him what he thinks of chiggars sometime. Home Page | GitHub | Adobe Blog | Twitter | LinkedIn