Andreas Augustin Posted March 8, 2018 Posted March 8, 2018 Hello! Can I deactivate the renaming feature of images and the editing (croping, rotating etc) in the processwire admin panel?
Andreas Augustin Posted March 8, 2018 Author Posted March 8, 2018 I found, that Ican skip fields in the ProcessPageEditImageSelect Config... but when I add the field... nothing happens. I still can crop the image
Andreas Augustin Posted March 9, 2018 Author Posted March 9, 2018 I solved it with AdminOnSteroids and Custom CSS/JS 1
adrian Posted March 9, 2018 Posted March 9, 2018 7 hours ago, Andreas Augustin said: I solved it with AdminOnSteroids and Custom CSS/JS Glad you sorted out a solution. Any chance you'd like to share in case someone else wants to achieve this as well? Thanks!
Andreas Augustin Posted March 9, 2018 Author Posted March 9, 2018 Sure - I added 2 files with adminonsteroids: site/template/admin/admin.css site/template/admin/admin.js With these codes I hide following features: Image Cropping Image Variations Image Title change Image Actions Image Change on Drag & Drop /* added ot admin panel sites */ .InputfieldFileActionSelect, .InputfieldImageEdit__info, .InputfieldImageEdit__buttons button { display: none !important; } .InputfieldImageEdit__buttons button.InputfieldImageButtonFocus { display: inline-block !important; } .InputfieldImageEdit__name span { cursor: default; } .InputfieldImageEdit__imagewrapper .detail-upload { visibility: hidden !important; } // added ot admin panel sites $(document).ready(function() { $('.InputfieldImageEdit__name span').removeAttr('contenteditable'); }); 4 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now