Omega, Views, Panels oh my!

Events happening in the community are now at Drupal community events on www.drupal.org.
figtree_development's picture

I am curious. I am sure what I am wanting to do has been done before. I am attempting to build a theme using omega as the parent. I would like for the content zone to contain(at least on the homepage) a slider of images in the background with fixed-column-paneled content on top of it.

In other words the slider moves behind the paneled content.

Has anyone attempted this? I would think a zlayer css-magic trick could make this happen. unfortunately I have been unsuccessful. Thoughts?

Comments

Hi Jason, Most slideshow

digitalfrontiersmedia's picture

Hi Jason,

Most slideshow modules are running a lot of javascripts that are altering the z-index of the slide containers. Most of the time, the javascripts are making those changes as inline style changes on those containers.

So, I'm guessing you're probably trying to set z-index of the slides or the slideshow container but those values won't be inherited.

It's probably possible but you may need to set a bunch of "crazy high" z-indexes on the items you're trying to float over top.

More info on exact modules and/or example would be helpful to get more detailed tips.

Omega 4

c13l0's picture

Hi Jason,

Here is an example I put together using a simple views slideshow.

  1. Create custom block regions if desired in yourtheme.info and yourtheme.layout.inc
  2. Added html and php to yourtheme-layout.tpl.php
  3. Used singularitygs (@include gridspan) to position the regions in yourtheme.layout.scss
  4. Added css to the regions
  5. Adjusted the z-index of the views slideshow

Screen shot of the scss and tpl.php
http://take.ms/gkVcr

Short screencast of the final results
http://monosnap.com/file/T4yMDxMp1PAIGls1HPVPoFZPZhSpZW

@C13L0 Interesting. I was

digitalfrontiersmedia's picture

@C13L0

Interesting. I was always under the assumption that using negative z-index values would cause problems with setting simple things like background-color on the body, i.e. setting it to anything other than transparent would then cover up the negatively z-indexed item. And then you'd have to negatively z-index body farther back still, and then what kind of fun inheritance ensues from there? I've never actually bothered to test my assumptions so they may, indeed, be completely wrong. Curious as to your thoughts/experience on it.

Are there any IE implications to setting an item negative like that?

You are right. I normally

c13l0's picture

You are right. I normally wouldn't use a negative z-index but I couldn't get it to work properly without using a negative value. We need a theming guru in here! Where is Blaldwin when he is needed?

Interesting question...

friendlymachine's picture

If someone could post an actual site demonstrating the problem, I'd be happy to take a look. I think things with Views Slideshow tend to be pretty bloated and difficult to modify. You could likely make a slider yourself that would work better without too much trouble.

Use a view to get the markup the way you'd like it, add a little CSS and jQuery and you should have something.

Here's a quick example I found that might inspire:

http://codepen.io/zuraizm/pen/vGDHl

John Hannah
Friendly Machine

@DigitalFrontier Thanks for

c13l0's picture

@DigitalFrontier

Thanks for making me rethink that!!! I overlooked a basic rule. z-index only works on position elements (position: relative, postition: fixed, etc) There was no need to change the z-index on the view but instead on the custom regions.

Here is the updated code with the views css removed as it was not needed.
http://take.ms/8XiV7

Screenshot of final result with an aliceblue background added for testing
http://take.ms/7r0M4

regions and background slideshows ...

bladwin's picture

so, this is definitely possible, and not too difficult if you're creating a custom layout. If you can, create a special region for the front page, and in the layout.css don't assign any grid width to that region. What you'll then want to do, is create a template for that region, and a "region.preprocess.inc" in Ω4's preprocess folder. check against the region's machine name in an if statement, then create a template variable that equals "views_embed_view('view_name', 'display_id', array('arg_1', 'arg_2')); argument array is optional. Once you have that variable defined, open the region template that you previously created and output it where necessary. In your styles, assign the grid width to the elements that you need to (I'm assuming each slide will have it's own content container, for things that aren't the image). This will give you a full width image slider, with columnar content "on top" of it, and does not require any z-index hackery. good luck. ping me in IRC if you need some hand-on assistance, or if you'd like to schedule a time where we can share screens and go over this together.

Congratulations! You have

c13l0's picture

Congratulations! You have been chosen to give a demonstration at one of our infamous Brevard meetups =)
When I can pencil you in?

I agree

figtree_development's picture

First of all a HUGE thank you too all of YOU. Since I am in SRQ, I would love to see a online demonstration. I am also still working in Omega3. YES YES I know I need to move to Omega4....

Florida

Group organizers

Group categories

Florida Topics

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week