How do you embed youtube videos in blog posts?
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.
- Page 11(current)
- 2
- Next 10 entries
Up
Anyone?
You could change Content field typ to "HTMLTextField" and post it from the CMS (use the HTML Editor)!
Hello everyone,
is it possible to use the HTMLTextField in a DataObject, somehow? I would like to use DataObjects instead of Pages in every subcategory. But I haven't found a way to embed youtube videos there, yet.
Any ideas for a solution?
Cheers
jovoo
I would love some help with this as well. I tried changing the Content class to HTMLEditorField which seemed to work fine in CMS however when displayed on the website all the HTML was displayed as text. i.e. - <p>'s and youtube embedding code was displayed as normal text... Learning a lot as I work through this, any help is greatly appreciated!
Thanks!
I have the following in the /mysite/_config.php file which disables bbcode and utilises TinyMCE instead:
BlogEntry::allow_wysiwyg_editing();
which allows Youtube entries, as seen here: http://crew.org.nz
BlogEntry::allow_wysiwyg_editing();
...I'm afraid I don't know what this does.. I included it in _config.php and nothing appears to have changed...
Wondering if anyone else has some idea as to what might be the problem?
- Page 11(current)
- 2
- Next 10 entries