Is it possible to have all Matrix rows in the Control Panel entry be in the collapsed state by default?
Thanks. Lori
Craft CMS Stack Exchange is a question and answer site for administrators, end users, developers and designers for Craft CMS. It only takes a minute to sign up.
Sign up to join this communityIs it possible to have all Matrix rows in the Control Panel entry be in the collapsed state by default?
Thanks. Lori
Inject this piece of JS in your CP and they will always be closed by default:
$('.matrixblock').each(function() {
$(this).addClass('collapsed');
Craft.MatrixInput.rememberCollapsedBlockId($(this).data('id'));
});
Here's an example plugin that will inject it in the CP: https://gist.github.com/boboldehampsink/6bb9e5296977a99c39b1
init()
function include the js. I've created a gist that should set you up: gist.github.com/boboldehampsink/6bb9e5296977a99c39b1
– Bob Olde Hampsink
Jun 18 '15 at 16:57
Not that I'm aware of, but this feature request and response may at least help a bit. http://feedback.buildwithcraft.com/forums/285221-feature-requests/suggestions/7425151--expand-collapse-all-ui-for-matrix-fields