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:

756 Posts in 191 Topics by 245 members

Blog Module

SilverStripe Forums » Blog Module » Embed YouTube videos

Discuss the Blog Module.

Page: 1 2
Go to End
Author Topic: Embed YouTube videos 1206 Views
  • animasola
    avatar
    Community Member
    94 posts

    Embed YouTube videos Link to this post

    How do you embed youtube videos in blog posts?

  • animasola
    avatar
    Community Member
    94 posts

    Re: Embed YouTube videos Link to this post

    Up

    Anyone?

  • cliersch
    avatar
    Community Member
    75 posts

    Re: Embed YouTube videos Link to this post

    You could change Content field typ to "HTMLTextField" and post it from the CMS (use the HTML Editor)!

  • jovoo
    avatar
    Community Member
    11 posts

    Re: Embed YouTube videos Link to this post

    Hello everyone,

    is it possible to use the HTMLTextField in a DataObject, somehow? I would like to use DataObjects instead of Pages in every subcategory. But I haven't found a way to embed youtube videos there, yet.

    Any ideas for a solution?

    Cheers
    jovoo

  • mrwindupbird
    avatar
    Community Member
    26 posts

    Re: Embed YouTube videos Link to this post

    I would love some help with this as well. I tried changing the Content class to HTMLEditorField which seemed to work fine in CMS however when displayed on the website all the HTML was displayed as text. i.e. - <p>'s and youtube embedding code was displayed as normal text... Learning a lot as I work through this, any help is greatly appreciated!

    Thanks!

  • SightUnseen
    avatar
    Community Member
    19 posts

    Re: Embed YouTube videos Link to this post

    I have the following in the /mysite/_config.php file which disables bbcode and utilises TinyMCE instead:

    BlogEntry::allow_wysiwyg_editing();

    which allows Youtube entries, as seen here: http://crew.org.nz

  • mrwindupbird
    avatar
    Community Member
    26 posts

    Re: Embed YouTube videos Link to this post

    BlogEntry::allow_wysiwyg_editing();

    ...I'm afraid I don't know what this does.. I included it in _config.php and nothing appears to have changed...

  • mrwindupbird
    avatar
    Community Member
    26 posts

    Re: Embed YouTube videos Link to this post

    Wondering if anyone else has some idea as to what might be the problem?

    1206 Views
Page: 1 2
Go to Top

Currently Online: There is nobody online.

Welcome to our latest member: fearofbuttons

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

Comments on this website? Please give feedback.