Questions tagged [drupal-regions]

Regions are places where Drupal blocks can be placed, defined by the active theme.

Regions are places where Drupal blocks can be placed, defined by the active theme.

See also

10 questions
9
votes
2 answers

Assign a block to more than 1 region

How do I assign a block (the very same block) twice or thrice to different regions? The idea is not to have the same block on the same page more than once, but in different locations on different pages, so four 'displays' would be available: Block…
Rudie
  • 52,220
  • 42
  • 131
  • 173
3
votes
1 answer

user-menu in secondary-menu: why?

I've created a sub of the zen-theme. And am mighty proud of it, but up in the top right corner (#secondary-menu) the user-menu shows up - perfectly. I just don't understand how it get's there? In structure/blocks the user-menu appears in the…
T4NK3R
  • 4,245
  • 3
  • 23
  • 25
2
votes
3 answers

Am I understanding Drupal regions and views correctly?

We're building a very content rich site in Drupal. It's my first time working with it. There are a variety of sections to this site, each with a different layout. I plan on determining the page.tpl.php via the phptemplate_preprocess_page()…
Doug P
  • 361
  • 1
  • 4
  • 15
1
vote
2 answers

Drupal 8: How to get all blocks in a region to use the same template

So what I am trying to do, is to get all the blocks in footer region to use the same template, say, block--footer-block.html.twig. What I tried is to use hook_theme_suggestions_HOOK_alter() to check where the blocks are located and add the region…
Jaguarundi
  • 11
  • 2
1
vote
2 answers

More than one instances of block for different pages in Drupal 7

Is there anyway we can define more than one block structure for the pages? For example... I want to two different block/region setting and that should be page specific... So I can create literally 2-3 different region settings or page structure…
Ricky Patel
  • 329
  • 3
  • 13
0
votes
2 answers

How to know where to assign regions data in drupal 7

I have a query regarding regions in drupal 7 . This is the code of page.tpl.php file inside my theme . I have declared these regions in leadsnow.info file inside my theme folder. But couldn't get any idea how to use them . Like if i want to keep a…
Soumik
  • 137
  • 1
  • 13
0
votes
0 answers

Drupal 7: Views block in custom region rendered outside of page.tpl

I have custom regions rendered inside of the node.tpl.php file which work as expected, but results in a php error when a block created by the views module is placed in them. [:error] [pid 2563] [client 127.0.0.1:35606] PHP Fatal error: Maximum…
Salem616
  • 11
  • 3
0
votes
1 answer

Drupal 7: How to assign each node to different block (or region)?

How to assign each node to different block (or region)? When i add new content and select promote to front page, its every time displayed under "Main page content" block. I have region "content" and "top-content". "top-content" region has block…
Gregor
  • 385
  • 3
  • 15
0
votes
2 answers

How do I change the output of drupal 7 menu blocks in one specific region?

So I have several menu blocks in a region one my drupal 7 site. I need to wrap each of these menu blocks in a
tag, but leave all other menu blocks unaffected. My thinking was to preprocess the region, check if the blocks were menu blocks,…
-1
votes
1 answer

Render conditional $region in node.tpl.php - Drupal 7

I was trying to print a conditional region, but my code does not seem to work that well. Anyone can pitch in a fix, please?