Login | Forgot password | Register

X

What is OpenID?

OpenID is an Internet-wide identity system that allows you to sign in to many websites with a single account.

With OpenID, your ID becomes a URL (e.g. http://username.myopenid.com/). You can get a free OpenID for example from myopenid.com.

For more information visit the official OpenID site.

Jump to:

8500 Posts in 2212 Topics by 1195 members

General Questions

SilverStripe Forums » General Questions » iframe in 2.3.1

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Page: 1
Go to End
Author Topic: iframe in 2.3.1 161 Views
  • Fabie
    avatar
    Community Member
    24 posts

    iframe in 2.3.1 Link to this post

    Hi guys, a while back on 2.2.2 i had found a hack to add iframes and make the HTML eat it.
    Now on 2.3.1 the valid elements trick doesn't work (as read on many threads).
    How on earth can we add iframes? I have read a few posts with specific things to do, compile, recompile and upload.

    Surely in 2009 with the web being as interactive as it is we can paste iframes in an easy manner in SS?

    Has anyone found a trick that doesn't involve 3h of programming and would like to share it step by step?

    I am rather disappointed but need a solution!

    Cheers

    Fabie

  • banal
    avatar
    Community Member
    770 posts

    Re: iframe in 2.3.1 Link to this post

    Well, as long as you don't need the iframe to be in your content-text (eg. editable within TinyMCE), the solution is simple: Just create a new database field with type text and add a TextArea Field to enter your raw html code there. Let's assume the new field is named RawHtml, then you could output the following in your tempate:

    $Content
    $RawHtml

    That would always put the raw html content (eg. your iframe) after the content... (or before, if you swap the two). If that's ok you should be fine. Otherwise you'll have to dig into a way to enable your desired code tags for TinyMCE. This post might be helpful (although it deals with javascript): http://silverstripe.org/general-questions/show/255947

    161 Views
Page: 1
Go to Top

Currently Online: There is nobody online.

Welcome to our latest member: U

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

Comments on this website? Please give feedback.