Promoted forum posts override block weights
capitaine - December 30, 2006 - 19:32
| Project: | Drupal |
| Version: | 5.0-rc1 |
| Component: | block.module |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
I have the Gallery Grid Block set to display in the Contents section, and because I want it to appear on the top of the home page (although not in the header), I weighted it at -1. However, all my forum topics which are 'promoted to front page' seem to take precedence - the gallery block just displays at the bottom.
Regardless of what weight I choose (0, -10) it doesn't work.... I originally posted here: http://drupal.org/node/105922

#1
wondering if I posted this in the wrong forum..? should it be in the Gallery module issues forum?
#2
Yeah... the Drupal project is only for problems with Drupal core. For any contributed modules, you use their project to file issues.
#3
Can you please try doing the same thing with a different block. There is nothing special about the Gallery Grid block code, so I do not understand why it (specifically) should be a problem.
#4
Nope, its not confined to the Gallery Grid block. I tried an RSS feed block and also the Who's online block, each time putting the block in the Contents section and weighing them at 0, -4 etc and then going to different areas of the site....
But it makes no difference: they never appear at the top of the page!
#5
Moving back to a Drupal issue as seems not to be related to the Gallery module.
#6
Better title.
Does this occur for content types other than forum posts that are promoted to the front page?
#7
Yes.. Any content type that is 'promoted to front page' seems to think it has been 'promoted to the top of the front page'. This is a an issue, as obviously I will need some content promoted to the front page, but I do NOT want it overriding the weighting of other blocks/content. Hope this helps.
#8
Hm. Isn't this by design? The content region is inside the content. If you want something above the content, you'd put it in the header region, or create a new region. Or do I misunderstand?
#9
it cannot be by design because it doesn't make sense. As I said, 'promoted to front page' does NOT imply it has to take precedence over every other content on the front page. It just means it has to be displayed there, but the weighting options for any other content should take priority.
If one of the options for a block's placement is to put it in the content, then the weighting funtionality ought to be honoured.
It can't go in the header.
#10
will this be looked at?
#11
This is by design, but we should add to this issue http://drupal.org/node/107794 to define a content top region (and rename t('content') to t('below content')) since this will probably pop up a lot. Normal content will always appear above any blocks in the content region.
You want something like this:
In template.php:
<?phpfunction yourthemename_regions() {
return array(
'left' => t('left sidebar'),
'right' => t('right sidebar'),
'content_top' => t('content top'), // Add this one only if you've already got this defined in template.php.
'header' => t('header'),
'footer' => t('footer')
);
}
?>
In page.tpl.php ABOVE where it says something like
<?phpprint $content;
?>
<?phpprint $content_top;
?>
Then put any blocks you want in the content top region.
#12
See http://drupal.org/node/29139.
#13