Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Embedding video

Our old forums are still available as a read-only archive.

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

Page: 1 2
Go to End
Author Topic: 4949 Views
  • Bright Eyes David
    Avatar
    Community Member
    26 Posts

    Embedding video Link to this post

    I need to use the HTML view in TinyMCE to paste in videos from MySpace, YouTube, etc., but the markup gets changed and added and then there are issues with the resultant HTML. How can I stop TinyMCE changing anything to do with embed and object tags?

    I've found a couple of threads on it here, but am not having success.

    Thanks.

  • Bright Eyes David
    Avatar
    Community Member
    26 Posts

    Re: Embedding video Link to this post

    No takers?

  • Bright Eyes David
    Avatar
    Community Member
    26 Posts

    Re: Embedding video Link to this post

    Hmm, this is a shame. I was looking forward to using SS for the first time, but it looks like I'll have to use something else that doesn't fiddle with markup in the same way.

  • Willr
    Avatar
    Forum Moderator
    5489 Posts

    Re: Embedding video Link to this post

    Theres no real way of doing this at the moment. I usually create another plain text box rather then html text then use that to embed the code for videos, js etc. Bit of a plain

  • Bright Eyes David
    Avatar
    Community Member
    26 Posts

    Re: Embedding video Link to this post

    Thanks.

    Though I understand that this won't allow for custom placement in the content area?

  • Willr
    Avatar
    Forum Moderator
    5489 Posts

    Re: Embedding video Link to this post

    Well you can be very very tricky and do something similar to http://doc.silverstripe.com/doku.php?id=recipes:customising-content-in-your-templates

    So you would have 2 fields - the standard content and the new video text field (VideoText).
    Then following the idea above do something like this in your Page_Controller class in Page.php (or whatever page type you need the Video)

    function Content() {
    return str_replace('$InsertMyVideo', $this->VideoText, $this->Content);
    }

    Then in the Normal text area you would just need to type $InsertMyVideo whereever you want the video to show. Only fault with this master plan is you can only have 1 video defined on each page at a time

  • Bright Eyes David
    Avatar
    Community Member
    26 Posts

    Re: Embedding video Link to this post

    I see. I need to enable the user to use more than one video.

    Thanks for clarifying. All the best with development, and maybe I'll come back another time.

  • Bright Eyes David
    Avatar
    Community Member
    26 Posts

    Re: Embedding video Link to this post

    So I received the recent SilverStripe email which reminded me of how interested I was in this software. Is there now a way to enable HTML such as that for videos to be inserted without interference?

    4949 Views
Page: 1 2
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.