I'm working on an issue with our Fusion Core base theme (#603644: Quick Tabs Block Order) in which Quick Tabs blocks get dropped to last position below/behind any other blocks in the region, regardless of their assigned position/weight.

The culprit appears to be the block_list() function. Whenever it is called on a region that contains a Quick Tabs block, it causes the block to get dropped to last position.

I can replicate the behavior in a non-Fusion theme (e.g., Garland, with a Quick Tabs block in the left sidebar set to first position ahead of other blocks) with the following code in template.php:

function garland_preprocess_block(&$vars) {
  $list = block_list('left');
}

Unfortunately, I'm not sure what I can do to work around this issue since I need to get a list of blocks in order to get a total block count for some layout formatting. In addition, I've seen other code use this function in order to add first and last classes to blocks.

Any ideas on how to fix/get around this?

Comments

gooddesignusa’s picture

thanks sociotech for figuring out the problem. I'll be watching this issue.

seutje’s picture

subscribe, will try have a looksie when I find some time

michelle’s picture

Any tips on even a hacky workaround for now? While I've had this problem for months, I didn't have enough stuff in my sidebar to really worry about it. I've started adding more things and now am really not liking that my QT block is stuck at the bottom. :(

Thanks,

Michelle

gooddesignusa’s picture

Michelle not sure if this means anything to you http://drupal.org/node/603644#comment-2602548
seems like the only progress so far

michelle’s picture

That looks like it's about the float issue to me. Fixing that was easy. It's the block order I don't know how to fix.

Michelle

sociotech’s picture

See http://drupal.org/node/603644#comment-2676756 for a work around patch for this issue for Fusion users. It doesn't fix the problem in Quick Tabs, but it avoids the problem if you're using a Fusion theme, which is probably the majority of exposure right now.

stella’s picture

subscribe

tylerfrans’s picture

I'm not using a fusion theme and having the same problem. It only happens when I switch to a sub-theme. Any suggestions?

Edit: I was wrong, was a block order issue not a quicktab issue.

katbailey’s picture

Version: 6.x-2.0-rc4 » 6.x-3.x-dev
Status: Active » Postponed
avpaderno’s picture

Issue summary: View changes
Status: Postponed » Closed (outdated)

I am closing this issue, since it's for a Drupal version no longer supported.