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   5533 Views

Avatar
SilverStripeBill

Community Member, 3 Posts

10 January 2013 at 12:25pm

Edited: 11/01/2013 5:34am

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

Community Member, 3 Posts

11 January 2013 at 5:32am

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.