How to change what Kupu and Plone filter out from a page
Changing what Kupu and Plone filter out by default
Let's say you want to add some custom HTML tags or maybe some Javascript to the front page of your site. When you try to do this through Kupu, when you save the page you notice that what you thought you had added was not actually added. This is because either Kupu or portal_transforms has filtered out what may be "unsafe" code.
You should go to Site Setup, look for the Kupu configlet, and in there you can change what it filters out. It's usually not a good idea to mess with the filtering because as you can imagine it helps prevent
- malicious code
- malicious aesthetics
It's the same filtering that prevents you from putting Javascript into the body of a page.
The other place to look is in ZMI, portal_transformations, safe_html or something like that. Again, be careful what you turn off.
You may be better served by creating a "Front Page" content type (cloned from the normal Document or Page type), then customizing the new type's default view template. That way you are not disabling any filtering but can do what you need to for exactly the front page.











