Odoo Help

Welcome!

This community 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.

3

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

By
Ahmet Altinisik
on 2/14/13, 5:15 AM 6,855 views

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

3

Fabrice Henrion (fhe)

--Fabrice Henrion (fhe)--
5823
| 7 7 8
San Francisco, United States
--Fabrice Henrion (fhe)--

Director Odoo USA

Fabrice Henrion (fhe)
On 2/14/13, 5:47 AM

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
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
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

michel Guénard

--michel Guénard--
1033
| 5 5 8
VIROFLAY, France
--michel Guénard--

VP operations & finance Social entrepreneur Certified Public Accountant Past Chief internal auditor

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>

0

Fabrice Henrion (fhe)

--Fabrice Henrion (fhe)--
5823
| 7 7 8
San Francisco, United States
--Fabrice Henrion (fhe)--

Director Odoo USA

Fabrice Henrion (fhe)
On 2/14/13, 5:25 AM

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

Fabrice Henrion (fhe)

--Fabrice Henrion (fhe)--
5823
| 7 7 8
San Francisco, United States
--Fabrice Henrion (fhe)--

Director Odoo USA

Fabrice Henrion (fhe)
On 2/14/13, 5:43 AM

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>

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

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