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

Overwriting Plugin-Templates?

Started by Muut Archive 9 years ago · 3 replies · 946 views
9 years ago

Hello there,

is there some way to overwrite the plugin templates ( in this case "CookieNotice") via theme?

Best regards,
Michael

9 years ago

Oh, I just saw it is the JS-File i need to overwrite =/. Sorry.
Is there any possibility to do this?

9 years ago

Twig files can be overwritten by putting them in your theme. Other plugin assets, no. You need to fork the plugin.

9 years ago

I have another solution in mind. I analysed the plugin. The problem lies within a js file. So I looked up your API-doc and saw that the "assets"-object can reset JS-Files. Am I able to exchange the JS-File with my own in some Event within my theme?

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 2555 9 years ago
Archive · by Muut Archive, 9 years ago
2 1684 9 years ago
Archive · by Muut Archive, 9 years ago
2 4972 9 years ago
Archive · by Muut Archive, 9 years ago
1 3796 9 years ago
Archive · by Muut Archive, 9 years ago
3 1795 9 years ago