Layer Example: Live Copy Status

A standard AEM instance provides the MSM layer. This accesses data related to multisite management and highlights it in the layer.

To see it in action, you may edit any language copy in the WKND sample content and select the Live Copy Status mode.

You can find the MSM layer definition (for reference) in:

/libs/wcm/msm/content/touch-ui/authoring/editor/js/msm.Layer.js

Code Sample

This is a sample package showing how to create a layer (mode) for MSM view.

You can find the code of this page on GitHub.

Add New Selection Category to Asset Browser

The asset browser shows assets of various types/categories (for example, images and documents). The assets can also be filtered by these asset categories.

Code Sample

aem-authoring-extension-assetfinder-flickr is a sample package showing how to add a group to the asset finder. This example connects to Flickr’s public stream and shows them in the side panel.

You can find the code of this page on GitHub.

Filtering Resources

When authoring pages, the user must often select from resources in a list.

To keep the list to a reasonable size and also relevant to the use case, a filter can be implemented in the form of a custom predicate. For example, if the pathbrowser Granite component is used to allow the user to select the path to a particular resource, the paths presented can be filtered in the following way:

For further detail on creating a custom predicate, see this article.