Posted by Anonymous on March 12, 2012 at 11:14pm
I'm an Omega and Drupal newbie and have started creating my first responsive site with omega+delta.
I need to have two columns of content on the front page and was wondering about the best way to do this.
I've modified .info by adding a second content region: regions[content_second] = 'Content Second', then used Delta to make content and content_second side-by-side 6-column regions. Now I'd like to promote content into the second content region. But I don't know if it's possible to extent the promote function to do this.
Is this a good approach, or should I be considering something else?
- panels - tried this too, but can't figure out how to promote the panel in non-teaser mode
- css columns?
- something else entirely?
Your help or suggestions would be greatly appreciated!
Comments
Simple is better
The content block has special properties in Drupal, so you can't really create a second "content" region. The standard way to approach this would be to create a View that outputs your second group of content in a sidebar. (that has been formatted to the same size as the content pane)
If you are basically looking for two columns of the SAME content, then don't list the content pane at all, and instead, place a View in one of the preface regions. You can format the View as a two column table. Note that you can always filter the View on the "promote" flag.
columns of content
Have you looked at this.
http://drupal.org/project/views_column_class
Awesome module! I use it on
Awesome module! I use it on my views, gives much better classes than the standard views way for responsive designing, and adds the alpha and omega classes the the correct columns automatically. Give it a try and post back if you have any problems. :)
Sam.
Thanks - I'll give the views_column_class module a try
Thanks for the tips. I'm looking for two columns that would contain (multiple) blocks with different content.
Use context to add blocks to the second sidebar
I also have a layout with an extra column of content on the home page. There are other differences too: only the front page has a banner picture, and the second sidebar is repositioned.
I use Delta to get the different layout for the home page, and I use Context to trigger on a path of "
<front>" to add a block to the second sidebar which contains the extra homepage content.The second sidebar is still available for non-homepages, but I haven't used it yet.
Hi everyone,I'm convinced
Hi everyone,
I'm convinced you can build a complete site only using 1 default template and making extensive use of the 'primary regions'. I'm pleased to say it's worked very nicely and certainly looks like a few different templates have been used on the site I'm building now, plus remains responsive. Just had to start with some extra zones/regions in the .info file than the ones that ship with Omega.
Empty regions collapse brilliantly with this theme :) remember to take advanage of the primary region setting, it's a reason in itself to use the Omega theme!
Take a 24 column template with:
sidebar-first at 6 columns|content at 12 columns|sidebar-second at 6 columns
Set content as primary region. Stick some stuff in sidebar 1 with context so the sidebar will render. Make a view using 'views column class' with 2 columns each with grid-9 class (18 columns = content+sidebar second).
Chuck the view in content region via context, and there you have it, three columns, 6,9,9 with the grid-9 ones containing anything you want through views! Works a treat. :)
Hope this provides some inspiration.
Sam.