This problem has to have come up by now:

I am unable to make the Content Region fill the space of the Second Sidebar Region when there are no blocks/content in the Second Sidebar Region. There is no choice in the Content Zone Configuration to select dynamic content as found in the omega documentation (http://omega.developmentgeeks.com/documentation/regions/configuring-regi...). Also, none of the regions in Content Zone are set to "Force to be rendered".

Besides a custom zone along with a few corresponding custom regions, I am using the default subtheme. I have made no major changes.

CommentFileSizeAuthor
#5 Settings61.02 KBknalstaaf
#5 Result: 2 columns not stretched39.96 KBknalstaaf

Comments

fubhy’s picture

Category: bug » support
Status: Active » Fixed

You are problaby in debugging mode. In debugging mode the system renders all regions (even if they are empty). Turn it off to see your primary region expand to the space of the empty regions.

nicolas@webstanz.be’s picture

Hi,

What do you mean by "debugging mode"?

The "debugging block" and "grid" options? I unchecked these options and the problem is still present.

I've an other site with this theme and there is no problem. I don't understand.

Do you have a solution?

Thanks

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

rwilson0429’s picture

Status: Closed (fixed) » Active

I had the same issue as hoff331.

There is no choice in the Content Zone Configuration to select dynamic content as found in the omega documentation and, although there is no content in my second sidebar, the content region does not dynamically expand.

I unchecked everything in debug as #1 suggested, flushed cached, and my content area did expanded dynamically.

knalstaaf’s picture

Status: Closed (works as designed) » Active
StatusFileSize
new39.96 KB
new61.02 KB

I followed the mentionned procedure as well + cleared the cache, ran cron and even logged out: no change.

I'm using a preface zone that's divided in 3 regions (preface first, second, third). Each has a width of 8 cols spread over 24 cols (see attachment).

samwillc’s picture

Version: 7.x-3.0-rc5 » 7.x-3.0-rc2

@knalstaaf, I notice in your configuration that it's a 24 column zone with 3 regions each at 8 columns. What you haven't done is set one of the regions as 'primary' in the zone configuration.

If primary is not set, your regions will appear as in your image 'Result: 2 columns not stretched'. They will be the width of whatever number of columns you have specified, and no more. If you set the primary region to be the region which contains 'OUR BATTERIES', that region would stretch to fill the void.

Whichever region is set to primary within a zone will stretch when the other regions have no content.

Hope this helps.

Sam.

samwillc’s picture

Also, if you use the context module, you can make a context conditions=node type, and set the reactions=menu, choose products for the parent menu item (description=Control menu active class using context). This would keep the 'products' tab highlighted when you venture further into your site, for example, on a sub page like this:

http://preview.batterysupplies.be/en/products/e-bike-batteries

It's in products, but no highlight. Just an afterthought.

Sam.

knalstaaf’s picture

Status: Active » Closed (works as designed)

Thanks, Sam, you helped a lot further than you probably would expect.

It was indeed so that my primary region wasn't assigned. When setting that straight, the issue would still remain, but that was because my View display wouldn't render the empty block as empty. I solved that by adding an extra filter criterion: "Content: headerblock 2:target_id (not empty)" on the view of the second block (and removing it from the Master display in Views).

The read more-link was directing to the wrong page. I mistakingly used the wrong field display. It had to be a custom link, not the read more-link. But I've been looking for a way to get active trails working with Views, for instance when a list of links is being displayed, each with a link to its proper content.

Basicly your "afterthought" solved a question I was dealing with for a long time.

Thanks a lot, very much appreciated!

samwillc’s picture

Status: Active » Closed (works as designed)

No probs.

I had the same problem when trying to keep 'Blog' main menu (blog page=view) highlighted when viewing an actual post (post page=blog content type). I do this via context also.

Sam.

pierrelord’s picture

Just fyi - you may also want to make sure to uncheck

'Show all regions'
Show all regions including those that are empty. Enable if you are administering your site using the inline editor.

in your 'context settings' at /admin/structure/context/settings
This causes regions to be rendered as in 'debugging mode'

3djeff’s picture

Thanks pierrelord! That context module setting was indeed causing the problem for me.

Unchecking the 'Show all regions' fixed the issue on my site where when logged in, my sidebars would show up even though they were empty. When logged out, they would not display and the content would correctly display
across the entire page, as I want it too.

polishyourimage’s picture

Category: support » feature

NOTE: Even if debugging is toggled off (red DO NOT ENTER icon top right of page, vs. green check) Omega renders empty regions. Debugging has to be turned off entirely for empty regions to not be rendered. Maybe it'd be better if toggling off debugging removed the empty regions?

samwillc’s picture

I hardly ever use the theme with debugging on. It's clear in my head what regions are where from the way I've designed the page layout. Debugging caused me headaches right at the beginning too!

Sam.