TransWikia.com

Showing two colorbox windows side by side...or within one main frame?

Drupal Answers Asked by robertsirwin on December 19, 2020

I have a site that I’ve created for some fellow musicians to learn new songs. Generally we have a link to a Youtube video of a song then a link that opens up the tab (chords, lyrics, etc) for the song. Right now I have links that open those things up individually in colorboxes. Works fine.

What I’d like to do is have one colorbox, or frame, or iframe, etc — that opens up and in the left side I have the Youtube video and on the right side the tab colorbox … so as I listen to the song I can scroll down at the same time and look at the tab. Here is a link to the site: http://practice.3cnorth.com/?q=all-songs

Thanks for any ideas.

ER

One Answer

One simple approach would be to just create a content type that includes both items. For instance, "songs". Then, you could:

  1. Embed each youtube video within their corresponding tabs node.
  2. Then, you could use a module such as Display Suite to display one next to each other (E.g. video on the left column and tabs on the right column).
  3. After this, if you want the tabs to be "scrollable", just set a fixed height in CSS and a "scrolled" overflow. E.g.

    .views-field-body pre {
        height: 300px;
        overflow-y: scroll;
    } 
    

That should do the trick, the colorbox will open one node, instead of 2 as currently.

Answered by typologist on December 19, 2020

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP