HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


What Best Way To Embed YouTube Video(s)

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#55312 (In Topic #12042)
Avatar

Fan in training

Need help embedding YouTube Vides into Right Panel

What are the steps necessary to add Youtube video to the right panel?

I was successful adding the youtube embed code using semihtml tag but it had a hidden right margin, for some reason. I am assuming that a block needs to be created? What is the procedure?

Is there actually a plugin module for this purpose that only needs the youtube id?

Video will be at the top of the right panel above search: Liberty Tool and Die

Thanks.. Dave
Back to the top
 
Posted
Rating:
#55327
Avatar

Have you seen our tutorials on Embedding a Google Map and YouTube custom comcode? Those two in conjunction cover almost exactly what you're asking about.

Back to the top
 
Posted
Rating:
#55329
Avatar

Fan in training

Thanks, Allen. I must of been looking in the wrong section of Tutorials. I just watched the video you posted above.. perfect! No block needed in the right panel.. just the custom comcode.

 :thumbs:
Back to the top
 
Posted
Rating:
#55335
Avatar

Fan in training

This custom comcode now works:


but getting an annoying margin on right side.

Liberty Tool and Die

If I wanted the video to look just like the standard box items below, how would I go about doing that? Create a new Side .tpl  ? then add the block code to the side panel?

Back to the top
 
Posted
Rating:
#55336
Avatar

Fan in training

OK, I think I am finally getting my brain wrapped around how this works. ..

I can add my video within a BOX on the right side vs a BLOCK, hence do not need to add a NEW block tpl code. I just need to style the BOX to look like the standard side panel .. right now I have a border at the top. I shrunk the video down by 10 pixels to fit WITHIN the 320 pixel width side Panel interior.

Thanks..
Back to the top
 
1 guests and 0 members have just viewed this: None
Control functions:
 Add topic 

Quick reply   Contract

Your name:
Your message: