AEM 6 - Touch UI Assets Console show Tooltip for Cards


Extend Assets Console to show tooltip with sub folder names on mouse over. A sample Coral tooltip CUI.Tooltip({})

Demo | Package Install


1) Login to CRXDE Lite (http://localhost:4502/crx/de) and create folder /apps/touchui-show-tooltip

2 Create node /apps/touchui-show-tooltip/clientlib of type cq:ClientLibraryFolder and add a String property categories with value cq.gui.damadmin.admin

3) Create file (nt:file) /apps/touchui-show-tooltip/clientlib/js.txt and add


4) Create file (nt:file) /apps/touchui-show-tooltip/clientlib/tooltip.js and add the following code.

(function (document, $) {
    "use strict";

    var SITE_ADMIN_TREE = "/bin/wcm/siteadmin/tree.json";

    $(document).on("foundation-contentloaded", function(e){
        var addSubFoldersToTooltip = function(data){
            var subFolders = [];

            $.each(data, function(i, f) {

            if(subFolders.length == 0){
                subFolders.push("No Sub Folders");

            return "<div style='display: block;'>" +
                "<span style='font-family:adobe-clean; font-weight: bold'>" + subFolders.join("<USE_BR_HERE>") + "</span></div>";

        var getSubFolders = function (folderPath) {
            return $.ajax({
                url: SITE_ADMIN_TREE,
                data: { path: folderPath },
                dataType: "json",
                async: false,
                type: 'GET'

        var assets = $("");

        assets.each(function(index, card){
            var $card = $(card);

            $'mouseenter', function () {
                var $this = $(this);

                var tooltip = new CUI.Tooltip({
                    type: "info",
                    target: $(card),
                    content: (function(){
                        var html;

                        getSubFolders($"path")).done( function(data){
                            html = addSubFoldersToTooltip(data);

                        return html;
                    arrow: "left",
                    interactive: true
})(document, Granite.$);


  1. Thank you for posting such a great article. Keep it up mate.

    Saksham Yojana Haryana | Saksham Yojana Apply

  2. A very awesome blog post. We are really grateful for your blog post. You will find a lot of approaches after visiting your post.
    Hi! We are water treatment company in uae Great points made up above! And
    reverse osmosis troubleshooting thanks…
    I think this is one of the most important information for me. And i am glad reading your article. But should remark on few general things…

  3. Thank you for posting such a great article. Keep it up mate.

    CFMS |