Skip to content
Grav 2.0 is officially stable. Read the announcement →
General

How to remove .dz-unset from admin plugin?

Started by Gez 12 months ago · 1 replies · 158 views
12 months ago

I need to remove all functionality that dz-unset have from admin plugin.

Even someone know what it is shouldnt be able to use it so just disabling it with css is not enough.

Reason: I limit number of image upload but when dz-unset used it broke that process since user cant see the uploaded file anymore to remove it. If it does not reduce count it will create bug because user will be able to upload any number of image, if it does reduce count user wont be able to upload image.

it needs to be removed for my case.

last edited 08/26/25 by Gez
12 months ago

I pasted it to end of admin.min.js file. It removed icon :)
when admin plugin updated it will be removed but i need to do it this way till i learn how to create plugin. It is good to have even this much really :)
@markpousee
I have one question: At developer panel at web browser i can create html elements and at console i can run js codes. Will someone be able to just create html element and run its js code at browser to active what we removed?

Suggested topics

Topic Participants Replies Views Activity
General · by jean-louis67, 3 weeks ago
2 308 3 weeks ago
General · by Andy Miller, 3 weeks ago
0 310 3 weeks ago
General · by Veehem, 4 weeks ago
0 263 4 weeks ago
General · by milkboy, 4 weeks ago
0 264 4 weeks ago
General · by ian russell, 1 month ago
2 335 1 month ago