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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Blog Module /

Discuss the Blog Module.

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

Need to be able to embed youtube etc in the blog!!!


Go to End


2 Posts   2201 Views

Avatar
Decisive Flow

Community Member, 73 Posts

15 September 2009 at 3:12pm

I've been trackign the fourms for a while to se ehow progress is going on this... But it still seems imposisble. These days our customers just assume they can embed you tube and other widgets int he site as they would with any other blogging tool.

If I cut off the wysiwyg editor, it works fine but then it's really hard for non-technical people to add images and edit articles.

Is there an answe? I hope I haven't missed it! I've look all over the forums and documentation!

thanks,

Nat

Avatar
bummzack

Community Member, 904 Posts

15 September 2009 at 6:40pm

You could introduce some special syntax for youtube videos. For example [y=Yu_moia-oVI] would embed the video with that ID. Of course you need to parse that string and replace it with the actual embed codes. Here's a basic example how this could be done: http://doc.silverstripe.com/doku.php?id=recipes:customising-content-in-your-templates