MODX3 Collection CMP - How to make view only published as standard


I am searching for the possibility to set viewing only published resources


Dont found something.

Thank you in advance


If you don’t mind making changes to source files you can add ,filter: 'published' to the base-parameters here:

and change ,value: '' to ,value: 'published' here:

These changes will get overwritten on the next update of the extra.

If you don’t want to change the source file, you probably have to add a custom plugin that adds some javascript code to the page. The code could programmatically set the combobox to a different value after the page is loaded.

Some partial untested code:

var filter_combo = Ext.getCmp('collections-grid-filter-status');
filter_combo.fireEvent('select', filter_combo);

thank you very much.