For enthusiasts, some bootstrap help to track user-selected pages in backend. Works across paginated pages. Script uses JS Cookie plugin (https://github.com/js-cookie/js-cookie). Restore functionality after ajax-induced actions.
There is a variable COUCH that has many useful applications.
Possible application is an action over multiple selected pages at once (especially helpful in paginated list-view or gallery-view) -
PM for full solution if you need one.
If you want a feature in backend, but don't know how to make it all work together - PM me for a quote.
There is a variable COUCH that has many useful applications.
Possible application is an action over multiple selected pages at once (especially helpful in paginated list-view or gallery-view) -
- publish / unpublish
- delete
- export as ..
- move to a folder
- relate to some other page
PM for full solution if you need one.
- Code: Select all
<cms:config_list_view>
<cms:html>
<cms:admin_load_js path="https://cdn.jsdelivr.net/npm/js-cookie@2/src/js.cookie.min.js" />
</cms:html>
<cms:script>
_selectDeselect = function(){
if (typeof Cookies == "undefined") {
console.warn('Warning - js.cookie.min.js is not loaded.');
return;
}
if (typeof Cookies.get('mySelectedPages') == "undefined") {
Cookies.set('mySelectedPages', '', { expires: 1 });
}
COUCH.el.$content.find( ".checkbox-item" ).not( ":disabled" ).on( "change", function( e ){
... do whatever
});
Cookies.set('mySelectedPages', pages, { expires: 1 });
};
$( function (){
_selectDeselect()
});
$( document ).ajaxComplete(function( event, xhr, settings ) {
_selectDeselect(); // restore functionality after ajax events
});
</cms:script>
</cms:config_list_view>
If you want a feature in backend, but don't know how to make it all work together - PM me for a quote.