Odoo Help

3

[META] Can we embed youtube videos in questions and answers?

By
Ahmet Altinisik
on 2/14/13, 5:15 AM 8,499 views

Embedding a small youtube video in answers would be nice is this possible ?

3

It doesn't seem possible. Even though it displays correctly in the preview area, only the code appears on the submitted answer.

I have tried the following (found in the Share > Embed section of a Youtube video):

<iframe width="420" height="315" src="http://www.youtube.com/embed/nh95_KwSPVg" frameborder="0" allowfullscreen></iframe>

and

<object width="420" height="315"><param name="movie" value="http://www.youtube.com/v/nh95_KwSPVg?hl=en_US&amp;version=3"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/nh95_KwSPVg?hl=en_US&amp;version=3" type="application/x-shockwave-flash" width="420" height="315" allowscriptaccess="always" allowfullscreen="true"></embed></object>

Apparently, a specific AskBot module needs to be installed as explained here: https://github.com/ASKBOT/askbot-devel/blob/master/askbot/doc/source/optional-modules.rst#embedding-video

I hope it will be added to the server :)

Altınkaya Elektronik Cihaz Kutuları imalat Ticaret ltd sti, Ahmet Altinisik
on 2/14/13, 6:54 AM
1
michel Guénard
On 2/26/15, 1:12 PM

Works great.

This is easy:

goto the blog page where you need to embed a video (on the odoo back end under the Knowledge menu)

Edit the page and then use the "Show source" button and paste the source code obtained from the video source.

My example:

 

<section class="jumbotron mt16 mb16" data-snippet-id="jumbotron"><div class="container">
<h1></h1>

<h1></h1>

<h1><a href="http://www.musicologie.org/15/un_cauchemar_glace_en_noir_et_blanc.html">Un cauchemar glacé en noir et blanc</a></h1>

<iframe width="640" height="480" src="https://www.youtube.com/embed/5POe-WCjNJs" frameborder="0" allowfullscreen=""></iframe>

                        <h3>

                        </h3>
                        <div class="embed-responsive embed-responsive-16by9">
                            <iframe class="embed-responsive-item" src="//www.youtube.com/embed/zpOULjyy-n8?rel=0"></iframe>
                        </div>

<p></p>

<p><a class="btn btn-primary btn-lg" href="/page/website.contactus">Contact us </a></p>
</div>
</section>

1
Pierre J Thyssen
On 8/10/14, 2:36 PM

Finally found an html snippet that works great! 

Just copy and paste the html snippet below where you want by going to  Customize ----> html editor then paste where you want and change the YouTube Video number zpOULjyy-n8 with yours. You get his by going to the YouTube Video and then below the video select the share link and get the bold video number using example below:

src="//www.youtube.com/embed/zpOULjyy-n8

                        <h3>

                         Responsive 16:9 YouTube

                        </h3>
                        <div class="embed-responsive embed-responsive-16by9">
                            <iframe class="embed-responsive-item" src="//www.youtube.com/embed/zpOULjyy-n8?rel=0"></iframe>
                        </div>

0

Hello, sorry but how can you access to the source code for a particular blog post ?

I do not see any "ShowSource" button on the Odoo backend under the Knwloedge Menu.

0

Yes, it is possible and very easy.
Just go to the youtube video, click on the "Share" link below the video, select the "embed" section, and copy/paste the code in your answer.

Example:

<iframe width="420" height="315" src="http://www.youtube.com/embed/nh95_KwSPVg" frameborder="0" allowfullscreen></iframe>
<iframe width="420" height="315" src="http://www.youtube.com/embed/nh95_KwSPVg" frameborder="0" allowfullscreen=""></iframe>
0
Nikolaj
On 2/14/13, 5:25 AM

I think that this could be a really useful feature and help increase the quality of answers.

According to the FAQ, at a certain level of karma one can:

  • 30 insert text link, upload files
  • 50 insert clickable link, answer own question immediately

Therefore I would say that inserting a video should go somewhere around here, perhaps also at 50, as it is 'interactive' like a clickable link.

If of course it is possible on this platform.

0

http://www.youtube.com/v/nh95_KwSPVg?hl=en_US&version=3"><embed src="http://www.youtube.com/v/nh95_KwSPVg?hl=en_US&amp;version=3" type="application/x-shockwave-flash" width="420" height="315" allowscriptaccess="always" allowfullscreen="true"></embed>

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)

Stats

Asked: 2/14/13, 5:15 AM
Seen: 8499 times
Last updated: 4/1/15, 5:20 AM