Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges


How to sort the elements in content finder?


Level 4

Hi All,

I have a requirement to add a new button on the content finder and sort the assets in alpha numeric format.

i just override the libs\wcm\extention\contentfinder\image.js file into apps\wcm

and done the below changes.  its not sorting. Please help me how to fix the issue 

                    "toggleGroup": "cfTab-Images-TG",
                    "enableToggle": true,
                    "toggleHandler": function(button, pressed) {
                        var tab = CQ.Ext.getCmp("cfTab-Images");
                        if (pressed) {
                            tab.dataView.tpl = new CQ.Ext.XTemplate(CQ.wcm.ContentFinderTab.THUMBS_TEMPLATE);
                            tab.dataView.itemSelector = CQ.wcm.ContentFinderTab.THUMBS_ITEMSELECTOR;
                        if ( != null) {
                    "pressed": false,
                    "allowDepress": false,
                    "cls": "cq-btn-details cq-cft-dataview-btn",
                    "tooltip": {
                        "text": CQ.I18n.getMessage("List View"),
                        "autoHide": true

1 Accepted Solution


Correct answer by
Level 10
1 Reply


Correct answer by
Level 10