owldesign / QARR

Grow your business by allowing visitors to leave reviews or ask a questions.
https://qarr.tools
Other
6 stars 5 forks source link

Getting QarrPlugin is not defined (ajaxified site) #12

Closed 23d1 closed 5 years ago

23d1 commented 5 years ago

I'm getting Uncaught ReferenceError: QarrPlugin is not defined when loading a page that doesn't have QARR loaded through {{ craft.qarr.display(model) }}, meaning trying to reinitialize QARR fails when navigating to a new page that has it, as the javascript for QARR isn't in the DOM. If I start on a page where it is included, then it works fine across the various pages.

23d1 commented 5 years ago

Related to https://github.com/owldesign/QARR/issues/11

23d1 commented 5 years ago

Solved this with custom templates and custom JS app.