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.

Blog Module

Discuss the Blog Module.

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

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


Reply

2 Posts   1340 Views

Avatar
Decisive Flow

15 September 2009 at 3:12pm Community Member, 73 Posts

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
banal

15 September 2009 at 6:40pm Community Member, 901 Posts

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