giansi/grav-plugin-cookies-policy

deactivation gives error

Closed this issue · 4 comments

cord commented

when inserting the tag {% include 'partials/cookiespolicy.html.twig' %} into the theme deactivation of the plugin crashes the site

Hi,
do you mean you added the tag {% include 'partials/cookiespolicy.html.twig' %} then you deactivated the plugin, setting enabled to false?

cord commented

yes, correct.

I would expect I can enable/disable the plugin w/o touching the theme again

AFAIK, "include" raises an error when the template is not found and there's no way to check if a template exists before including it. Have I missed something? Any other solution than include?

Fixed with 1.0.6 release. Thank you