Jump to:

5519 Posts in 1734 Topics by 1223 members

Customising the CMS

SilverStripe Forums » Customising the CMS » Schema.org microformats and microdata

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 4020 Views
  • SilverStripeBill
    Avatar
    Community Member
    3 Posts

    Schema.org microformats and microdata Link to this post

    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?

  • SilverStripeBill
    Avatar
    Community Member
    3 Posts

    Re: Schema.org microformats and microdata Link to this post

    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.

    4020 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.