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

Short Codes to embed a YouTube video


Reply


4 Posts   1353 Views

Avatar
George

Community Member, 41 Posts

9 July 2011 at 1:49am

Edited: 09/07/2011 1:49am

Hi

how can this great idea ([url]http://www.ssbits.com/tutorials/2010/2-4-using-short-codes-to-embed-a-youtube-video[/url]) enabled in blog module?

Thanks

Avatar
Willr

Forum Moderator, 5513 Posts

10 July 2011 at 1:27pm

I would think it's better outside the blog module, even if your site doesn't include the blog module you may still want to use that shortcode. Things like shortcodes are weird, too small for being a module, not a widget. I think the best option could be to have a repo of shortcodes perhaps (like our recipes - https://github.com/silverstripe-labs/silverstripe-recipes)

Avatar
George

Community Member, 41 Posts

10 July 2011 at 7:44pm

The issue is that the shortcodes (the way described by ssbits) are working in pages, but not in blogentries.
So, i am wondering.

Avatar
Willr

Forum Moderator, 5513 Posts

11 July 2011 at 10:54pm

Well blog entries *are* pages so it should work fine. Unless you're using BBCode for your blog - which in that case I recommend not using BBCode as it's so much more annoying compared to HTML.