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
Comment #1
gooddesignusa commentedthanks sociotech for figuring out the problem. I'll be watching this issue.
Comment #2
seutje commentedsubscribe, will try have a looksie when I find some time
Comment #3
michelleAny 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
Comment #4
gooddesignusa commentedMichelle not sure if this means anything to you http://drupal.org/node/603644#comment-2602548
seems like the only progress so far
Comment #5
michelleThat 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
Comment #6
sociotech commentedSee 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.
Comment #7
stella commentedsubscribe
Comment #8
tylerfrans commentedI'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.
Comment #9
katbailey commentedComment #10
avpadernoI am closing this issue, since it's for a Drupal version no longer supported.