Questions tagged [regions]

In a Drupal theme, the places where blocks can be put are called regions.

Filter by
Sorted by
Tagged with
2
votes
2answers
142 views

Can a block span more than one region in a theme?

Can a block span more than one region in a theme? Sometimes I would like content to do this, depending on the page. I'm aware (and heavily use) Panels which are great but I thought it would be worth ...
2
votes
2answers
2k views

Is it possible to hide the title of a block in a region to render it separately from the content?

I'm styling a custom region for the "Active Forum Topics Block" that's included with Drupal. can I hide certain elements in region--[name].tpl.php like as it is done in node.tpl.php? This is part of ...
0
votes
1answer
361 views

How to make a region available to a non-page tpl file?

I'm working with a custom theme (which I did not develop.) We're wanting to add a block to a specific node type, which has a template called node-session.tpl.php. This template prints out all kinds of ...
2
votes
1answer
448 views

How to move a field to a different region using Omega sub-theme / D7?

I used to be pretty good at theming Drupal sites, but I haven't done it much since D7. I added a custom field to my Basic content type and I want to put it in a Sidebar if it exists. What's the best ...
3
votes
1answer
2k views

How can I place content in page_top in D7 since it is hidden in regions?

I need to place a small menu in the page_top region using D7. I know the region is hidden, so my thought is to create a completely new region in the place that page_top would be showing up (I'm not ...
4
votes
3answers
6k views

How is the height defined for a region in a Drupal theme?

I can see that regions are defined in the .info file for a theme but I can't see how these regions relate to CSS that would be used to style them. For example, in the acq_minimal / Minimal theme, the ...
10
votes
2answers
8k views

Printing regions in html.tpl.php

I need to output some regions in the html.tpl.php template since these don't change between page.tpl.php and page-front.tpl.php (just to name two). Basically I want to avoid code duplication. However ...
2
votes
2answers
335 views

Rendering view output into a separate region

For the sake of theming, I need to render the output of a view into a separate region. I could create a view block, but this way I lose the ability to pass contextual arguments to it. Any suggestions?
0
votes
0answers
114 views

Drupal Subtheme regions and customization

I am subtheming a Drupal base theme and adding custom regions to it. One of the custom regions is a menu bar which has say n number of items that redirect to basically the menu item pages. Now each ...
1
vote
3answers
1k views

Drupal 7 regions

So I am getting acquainted with Drupal and it hasn't been a smooth ride so far. What I understand is that Drupal 7 has a few regions such as Header, Navigation, sidebar first and sidebar second. ...
2
votes
1answer
478 views

loading templates of region within page.tpl regardless of blocks being present

I came to this query while trying to create my own theme. Say i have my region named footertop, which is placed above the footer. Its going to contain only some html content and some site logos which ...
0
votes
1answer
127 views

Set a block region from the block edit page

I used Drupal since 4, and it always bothered me that the the block edit page doesn't include block region settings. One must return to the Blocks list to change that. It would be so much nicer if the ...
1
vote
2answers
2k views

How to get the content type in the zone/region tpl files?

How would I get the node type from within a zone/region or section (using omega theme) template file. I know how to override templates at the page/node level for specific content types - but I can't ...
4
votes
1answer
984 views

add three triptych side by side

i have made a custom theme "Custom_stark" and made changes into .info file and added the triptychs regions[triptych_first] = Triptych first regions[triptych_middle] = Triptych middle regions[...
0
votes
1answer
466 views

How to force regions to render in Overlay

I've created a Seven-subtheme for use with the Admin Overlay and have added Header and Footer regions, however these do not render, despite showing on the "Demonstrate Regions" page. I have tried to ...
7
votes
6answers
6k views

Region for Main page content block field is required Error? [closed]

I have created a custom region called latest. And when I am assigning some block to that region from admin, while saving it returns this error Region for Main page content block field is required. ...
0
votes
1answer
377 views

Rendering a Block Region in My Custom Theme

I am having my custom theme. In the theme.info i have a region latest defined regions[latest] = Latest How do i print that region in my theme? Is the below code correct? <?php print render($...
6
votes
2answers
4k views

Moving Exposed Views Filter into another region of the page

Is there any way to move the exposed filters of views into another region of the site? i.e. I want to have a Search functionality attached to the a view by exposing the "Search: Search Terms", but I ...
5
votes
3answers
2k views

Programmatically create a block region in Drupal 7

I am stuck with programmatically creating of regions in Drupal 7. I know how to create regions in .info file, but my problem is that I want regions for every node I create, to show a specific block to ...
2
votes
1answer
2k views

Region with block shows up in admin preview, but not on site

I'm new to drupal and a bit confused by this. Using the standard Bartik theme (Drupal install 7.8) I see a search bar on the sidebar. Checking the Structure > Block it shows that the search is ...
2
votes
1answer
867 views

render() and theme() fields

I would like to assign some content from a node, lets say the body field, into a region. so I cannot theme this content in my node.tpl.php In the template_process_page(&$vars) i can easily set $...
1
vote
0answers
105 views

Editor role can only manage right region of page, no other region allowed

In drupal 7, I have a page that has 3 regions: header, right sidebar and footer. I also have 2 user roles: Admin and Editor. An admin should be able to create content, edit content, publish ...
3
votes
3answers
4k views

Regions. how can I disable a region? (not disabling blocks)

I want to disable a region, to not show blocks in this region to an specific page. I want this because, I have several blocks (more than 20) so in this case is necessary enter to each block, and ...
3
votes
1answer
5k views

“Demonstrate Block Regions” not showing

I did a minimal install, with a desire to get rid of some of the stuff my site-to-be won't need. The problem I have... is I can't seem to get Demonstrate Block Regions working. It shows up on a "...
2
votes
3answers
2k views

make the sidebars and the “content” region the same length as each-other?

I have a website that has regions that are uneven. the sidebar first is a different length than the content, and the content is a different length that sidebar second. it looks something like this: I ...
11
votes
6answers
8k views

Splitting up content fields into different regions

My situation is as follows: I have a content type Seminar, with fields A, B, and C. I have regions Header, Footer, Content, and Sidebar Left. There are some fields in Seminar I want displayed in the ...
3
votes
2answers
1k views

Re-creating complex CSS footer layout in Drupal

I've been given some HTML & CSS files by our university web designer and need to replicate essentially the same layout into the library website I'm creating in Drupal. The footer (pleased see ...
2
votes
1answer
4k views

How to change position of a block in a region?

I just added a block to the 'content' region. It shows up at the bottom of this region. How do I do to move it to the top of this region? I'm using the Drupal default theme: Garland thanks
1
vote
1answer
2k views

How to manipulate different regions from a module

My module has a menu callback which outputs data to a custom template using hook_theme(). Normally, Drupal includes this output into the content region that is rendered at the page.tpl.php level ...
3
votes
1answer
2k views

Enabling blocks in an install profile

I'm creating an install profile and I just can't seem to get my blocks enabled. When I check the database after using the code below in my install function it puts the records in the block table, ...
1
vote
2answers
163 views

Can region be defined outside of the theme's .info file?

Basically I'm trying to reverse-engineer a theme that was developed by another guy. The problem is that I'm not yet quite firm on Drupal ground. So I'm looking onto a management page for blocks and ...
1
vote
2answers
217 views

Placing Panels Content Above Menu

I am trying to use panels to implement something that in the past I had done with blocks. My theme has a region called "content top", this displays content above the secondary menu (the tabbed menu ...
4
votes
1answer
2k views

How do I add an additional sidebar to a Zen sub-theme?

I want to add an additional sidebar to my zen based theme with fixed columns. I added it to the theme info, and printed it in the page.tpl.php file, but I don't know how to configure its CSS files to ...
0
votes
1answer
838 views

Modifying login/user panel position in a theme

For our site, we're looking at designing a relatively simple log-in widget/panel. We want it to be in the header of our site (for reference, we're modifying the excellent "Orange" Drupal theme), and ...
0
votes
3answers
532 views

Custom block that's always the first thing in a region?

I'm trying to create a region for my Drupal 7 theme that will be clickable drop-down to allow the user to log in/out, access their profile page and a few of other things. The best analogy I can come ...
2
votes
2answers
169 views

Configuring Drupal 6.20 to display a different icon in a specific region on a specific group of pages

I've added a block called 'Course Information', configured the block to display on a particular group of pages (courses/full-time/*). This works fine, but I don't know to configure Drupal to display a ...
4
votes
1answer
3k views

Blocks not visible when I log out

In Administration -> Structure -> Blocks I have defined Search box region with search box block and Left sidebar region with navigation block. These blocks are visible when I'm logged in but ...
1
vote
1answer
794 views

What is the equivalent of drupal_set_content()?

I am searching for something equivalent of drupal_set_content() for Drupal 7, to assign a block to a region. Do you have any idea?
58
votes
6answers
87k views

How do I create custom regions in a theme?

I want to add a new area which will be site wide. Describe the process of getting this new region into my theme, if possible generalize it for adding any new, custom region.
6
votes
3answers
2k views

Block template suggestions

Is there a way to use a custom template for each block by title? For example, if I named my block "test1", and it is in the region "left1", I want to use the following template suggestions: block-...

1 2 3 4
5