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

Overwriting Plugin-Templates?

Started by Muut Archive 9 years ago · 3 replies · 799 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 1326 9 years ago
Archive · by Muut Archive, 9 years ago
2 921 9 years ago
Archive · by Muut Archive, 9 years ago
2 4050 9 years ago
Archive · by Muut Archive, 9 years ago
1 2928 9 years ago
Archive · by Muut Archive, 9 years ago
3 1107 9 years ago