Sunda Posted September 16, 2016 Posted September 16, 2016 Hello everyone, I'm desperately searching for a way to restrict the selection of images, which a user can insert into the page using ckeditor. Basically it would be enough to find a way to remove the menu on top where you can browser to other pages and look for images there. I hope I'm just overlooking some kind of access settings. Thanks in advance for your help. Sincerely, Philipp
szabesz Posted September 16, 2016 Posted September 16, 2016 Hello @Sunda and welcome to the Forums, If you are new to ProcessWire, probably the easiest way is to hack it with CSS and/or JS. You can have ProcessWire admin load your files this way: http://soma.urlich.ch/posts/custom-js-in-processwire-admin/ Credit: @Soma 1
Sunda Posted September 17, 2016 Author Posted September 17, 2016 Hi @szabesz, thank you for your answer. With the article you linked I was able to define a hook in the admin file. With the hook I changed the output of the execute()-method in ProcessPageEditImageSelect and removed the elements making it possible to browse to other sites. 1
adrian Posted September 17, 2016 Posted September 17, 2016 Just crosslinking to a related topic - this one about about changing the starting page when inserting an image from another page, but there are lots of code examples and links to mini modules that I thought might be useful to help you understand what is possible. 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