Skip to main content
mikezooz
Level 4
out. 16, 2015 2:29 AM UTC
Respondido

How to sort the elements in content finder?

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;
                            tab.dataView.store.sort('name','ASC');
                        }
                        if (tab.dataView.store != null) {
                            tab.dataView.refresh();
                        }
                    },
                    "pressed": false,
                    "allowDepress": false,
                    "cls": "cq-btn-details cq-cft-dataview-btn",
                    "iconCls":"cq-cft-dataview-list",
                    "tooltip": {
                        "text": CQ.I18n.getMessage("List View"),
                        "autoHide": true
                    }
                }  

Este tópico foi fechado para respostas.
edubey
edubeyResposta
Level 10
fev. 17, 2016 8:42 AM UTC

1 Resposta

edubey
edubeyResposta
Level 10
fev. 17, 2016 8:42 AM UTC