Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Customising the CMS

Schema.org microformats and microdata


Reply

2 Posts   4947 Views

Avatar
SilverStripeBill

10 January 2013 at 12:25pm (Last edited: 11 January 2013 5:34am), Community Member, 3 Posts

I'm trying to add some microformats / microdata and Schema.org markup on one of my pages. This involves adding invalid attributes to my html elements (itemprop, itemtype and itemscope). every time I save the page with these attributes, the invalid attributes get removed from the html.

I think the WYSIWYG is doing this.

Is there a quick workaround in the TinyMCE configuration or the CMS itself that would allow these attributes, iframe elements and more to be saved to the database?

Avatar
SilverStripeBill

11 January 2013 at 5:32am Community Member, 3 Posts

Just an update, since I found the answer:

In \framework\forms\HtmlEditorConfig.php I changed

'verify_html' => true

to

'verify_html' => false

and it no longer removes the itemprop, itemtype and itemscope attributes from my markup.