I'm trying to install gitter on my website(plone version is Plone 5.2.1 (5208))
I created new page on my home. and I put below the script as source code. and I removed "script" tag from HTML filter and added it to valid tags. after I created the page. I can see chat window at the bottom right on my website. but it's locked, and it does not show anything.
so I talked to gitter, and they said "Your Sidecar is broken because of the escaped HTML entities in your script tag ( )". so I was trying to add the tag to HTML filter, but it did not let me do so. so I'm wondering how I can add gitter on my website.
Another option would be to include the JS snippet with the JS configuration for the analytics JS (control panel -> site). It does not belong there officially but it would make the JS globally available across the complete site.
it works like magic. thank you so much.
but for the future reference, would you explain how to implement this on resource registry or viewlet, if it's possible? I was studying these through the documents, but it's little hard to understand for beginner.
Depends on what you are trying to accomplish...if you are developing your own backend functionality then you usually write your own add-on aka a "policy package". When you are more interested in frontend aspects and working on a theme then you may integrate such stuff directly into a theme....see
Also have a look at this “through the web” (or TTW) customization training. TTW means anything you can do with just your browser, as opposed to having to create add-ons.
In this training, I can think of a couple of ways you could have Plone serve any JavaScript. Andreas’ suggestion is brilliant, but in this training you could have it served from a footer portlet or from a customization of the theme.