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

Short Codes to embed a YouTube video


Go to End


4 Posts   2326 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 (http://www.ssbits.com/tutorials/2010/2-4-using-short-codes-to-embed-a-youtube-video) enabled in blog module?

Thanks

Avatar
Willr

Forum Moderator, 5523 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, 5523 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.