OptikWebCreative / onWebChat

Add onWebChat widget to GRAV
MIT License
3 stars 4 forks source link

Make default 'on for all pages' configurable #4

Closed hughbris closed 7 years ago

hughbris commented 7 years ago

I want to just try out this plugin for a contact page, not most pages of the site. I appreciate most sites will want chat enabled on almost every page.

To do this, I will need to edit the frontmatter of almost every page on the site, and also remember to add onwebchat: false to new pages. I can maybe also set up a page blueprint but I have never tried this. My point is that it's a bit of setup work to just try this plugin out without putting it on every page.

I will probably hack this plugin to add a default_state property to its config, so that the default behaviour can be easily inverted. I would prefer to make this an official hack for maintenance reasons.

Do you think this is a good concept and would you be happy to merge a PR that does this?