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

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

General

How to remove .dz-unset from admin plugin?

Started by Gez 10 months ago · 1 replies · 51 views
10 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
10 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 Jerry Hunt, 4 days ago
2 80 10 hours ago
General · by pamtbaau, 15 hours ago
1 51 15 hours ago
General · by Andy Miller, 1 day ago
0 45 1 day ago
General · by Marcel, 12 months ago
6 346 5 days ago
General · by Duc , 5 days ago
3 40 5 days ago