Skip to content
● Grav 2.2 is out: 2x faster cold starts and 96% less memory on big sites. Read the announcement →

How to remove .dz-unset from admin plugin?

Started by Gez 1 year ago · 1 replies · 243 views
1 year 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
1 year 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 Andy Miller, 7 days ago
0 113 7 days ago
General · by lynbor, 1 month ago
3 439 2 weeks ago
General · by lynbor, 3 weeks ago
7 562 2 weeks ago
General · by Harry, 2 weeks ago
0 161 2 weeks ago
General · by Old Man Umby, 1 month ago
2 309 4 weeks ago