Questions tagged [regions]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
104 views

In header region: having 2 blocks on inlined

In drupal7, I need to have 2 blocks in the header region, a search form and a menu. By default, the theme "Skeleton 7" would stack up these 2 blocks. How can I edit region--header.tpl.ph to have ...
0
votes
1answer
149 views

What else apart do I need enabled, apart from “block to region” in Display Suite Extras for the “block regions” vertical tab to appear?

I've enabled "block to regions" in Display Suite Extras and I have enabled "Full Content" in "Manage Display". But the "block regions" vertical tab still does not appear among the other tabs beneath ...
1
vote
1answer
328 views

How to hide empty 'Content Zone' div in Omega?

I'm using Omega and I have "Force this zone to be rendered" unchecked in the Content Zone settings, and "Force this region to be rendered" unchecked in the Regions settings. Any idea what would force ...
0
votes
0answers
37 views

Linking to another region in the same page?

My page is broken down into region-a and region-b, region-a links to several Drupal nodes. When I click the links I want the nodes to display in region-b and not in a new page. Is that possible?
3
votes
2answers
2k views

Alter a form in a block only if it is in a certain region

In my template.php I'm trying to alter a form in a views exposed block, but I only want to do this if that block is in a certain region in my theme. I'm using Drupal 7. Is that possible? What php ...
1
vote
2answers
627 views

Moving a div down if a zone is present using jQuery

I'm trying to move a <div> down if a zone is present, but I'm having a little trouble targeting the right classes, etc. // See http://jsfiddle.net/xgbzm/. (function ($) { if (!$(this)....
1
vote
1answer
1k views

Removing header region

I am completely new to drupal. I am trying to customize the Acquia Marina theme to suit my upcoming site. The original layout is as shown in the screenshot: I want to remove the white band that is ...
2
votes
2answers
409 views

Trying to make a custom region disappear upon user login, then reappear when user logs out

I've looked everywhere for an answer to my problem, but can't find one. My goal is to collapse/force a custom region on my website to disappear when a user logs in, and then have it reappear when the ...
1
vote
6answers
3k views

Why aren't the main menu and the secondary menu simply regions?

I noticed that you can put content pretty much anywhere ( where a theme provides regions) using blocks. This becomes pretty straight forward and makes sense. But then I was trying to find where the "...
0
votes
2answers
2k views

Change Content region width when Sidebar has content?

hello i have what i feel is (hopefully) an easy problem to solve. Basically i have my regions defined which is fine but i have my sidebar that i want to display on the right of the content region. if ...
4
votes
1answer
2k views

How to print a region in views.tpl.php?

I have a views-view-unformatted--viewsname--attachment.tpl.php. I want to print region in this file. I added function mytheme_preprocess_views_view(&$vars) { if ($blocks = ...
1
vote
3answers
2k views

How to show fields in different regions?

I've tried the Display Suite module, which only comes with regions per display suite layout template (also the extra module did not change this) which basically just changes the body/ content region......
0
votes
1answer
158 views

Blocks created twice for a single page load

In a template file I am using this code $blocks= block_get_blocks_by_region('revel_card_dashboard'); To grab blocks for a region to render at specific parts of the template. This is causing the ...
2
votes
2answers
110 views

Regions are gone

I work with the Omega theme, but whenever I try to edit my regions, they are completely empty... As you can see on the image, there are no regions available, although there is content placed inside ...
0
votes
0answers
254 views

Omega Theme Region Disappear

I have created a omega sub theme. In header first region I have put a views slideshow banner which was working fine but all of a sudden it disappears from anonymous user. I tried to put some other ...
0
votes
2answers
1k views

Panels - Style region to become a drop down/expandable menu

Please see: http://drupal.org/project/tableofcontents I am using Panels and would like to style a panels region so I am able to hide/show just like the TOC module above. I have looked on Drupal ...
2
votes
3answers
1k views

Moving content fields to different theme regions with display suite

I am trying to output node fields in different theme regions, particularly a node reference field into my theme's right sidebar region. I have read this is possible with display suite and display ...
1
vote
2answers
207 views

How to decrease the width of the sidebar for a specific page? [closed]

Is it possible to decrease the width of my right sidebar for any specific page only? If so, please shed some light on that. I have created a basic page whose node id is 56. In that page I want my ...
0
votes
0answers
138 views

Site logo, utility menu and search box. Template or all css?

In the header, I would like to have a site logo on the left, utility menu in the middle and a search box on the right. Should I just insert the utility menu as a block and style the rest via css? Or ...
0
votes
1answer
593 views

API to display block in regions

I would like to display blocks in region by code, in the same way that I can use context (so: if I'm on a node_view of type "article" display block "user login" on region "Sidebar first", for example)....
1
vote
2answers
791 views

Blocks placed in content region appear in wrong positions

Is there something I need to know about the way drupal handles blocks in the content region? I have a very bare bones omega subtheme with a single page promoted to front and two blocks in the content ...
2
votes
2answers
326 views

How to use the right menu_tree and menu_link depending on region

How can I have specific menu_tree and menu_link for specific region? Example: left region will have his own menu_tree menu_link which will be different from the right region. How can I achieve this?...
3
votes
3answers
921 views

Insert block above comments in node

How to display block in node above comments. What i have tried is: create region - regions[above_comments] = Above comments after in template.php i have added this to THEME_preprocess_node $...
0
votes
1answer
2k views

Render a custom region inside node template [duplicate]

I am attempting to render a menu assigned to a block right next to the body of a custom content type. I am using Drupal 7. I have a custom region defined within my template .info file. I would like ...
2
votes
3answers
1k views

Change region/block content based on current node

I am trying to figure out how to change the content of a region/block depending on the node being viewed. Lets say I was creating a website for a grocery store. The home page will have several links ...
0
votes
2answers
156 views

Custom theme region for page

I would like to be able to custom theme a region for specific pages, is this possible? If so how? For example I have a ragion called rightbar and I know the region can be themed using region--...
4
votes
1answer
3k views

How to make a specific region use a specific template?

I'm currently working on Drupal 7 project in a Zen sub-theme. Each of my region uses "region.tpl.php" as HTML/PHP template. I just created a new region called "foo". This region needs a different HTML/...
2
votes
1answer
4k views

Commerce Kickstart demo: How do I change the region for the blocks Main Menu and Secondary Menu?

In the Commerce Kickstart demo the blocks Main Menu and Secondary Menu are assigned to the Menu region. You can see in the image: But I go to /admin/structure/block these blocks are Disabled. I mean ...
-1
votes
1answer
41 views

How to place user control links in the top region of my website (as in stackexchange)?

I would like to have a block, in the top right region of my website, that works pretty much like Drupal Answers. A login/register button for anonymous users and when the users are logged in, their ...
2
votes
1answer
422 views

Edit/View Tab in Region other than Content

I'm trying to set up two contexts for use with a sub-theme of Omega. 3 Column Context: Uses the regions Sidebar First, Content and Sidebar Second. Content is 6 columns wide. The Sidebar regions are ...
3
votes
2answers
816 views

How to avoid no-wrapper tags on regions?

How do I make sure ALL regions are wrapped according region.tpl.php? In a subtheme of Zen I have created my own regions and modified the page.tpl.php file to something like the following: <div #...
3
votes
3answers
2k views

How do I unset a region in template.php AND have it alter the body classes

In some cases I need to programmatically remove the sidebar_first region in template.php. So, I'm doing something like: function template_preprocess_page(&$variables) { if(my_condition){ ...
0
votes
1answer
50 views

add region with module installation

I am developing a module, that when installed, should place an HTML element in a drupal block. That block, will be inside a region. I would like the region to be added to the theme on module ...
1
vote
1answer
85 views

How to manage placement of blog articles in omega regions

I want to be able to control which omega region blog entries (individual blog articles) are placed. They appear to be in the content-zone, but I have not seen how to control which actual region they ...
0
votes
1answer
471 views

Content region not visible in blocks setup page in Sky Adaptive Theme

I checked the 'content' region, being one of the prerequisite regions and it is present and referenced in the sky.info file as well as in the page.tpl.php. That is: (in sky.info file) regions[...
1
vote
1answer
79 views

How to print number of blocks in a region in Drupal 6

I use Drupal 6 and I'm trying to get number of blocks in a region. How is that possible?
1
vote
2answers
2k views

Create custom block with node title?

I would like to be able to use a region which is to contain the title of the current node. In the default theme the title is output in the main content, but I want it in this custom region instead. ...
0
votes
1answer
523 views

Overriding region theme file for user profile pages

I am on D7 using Omega as a base theme. The <h1> tag of my theme can be found in the region--content.tpl.php theme file. But I want to override this theme in one specific situation: on the user ...
2
votes
2answers
832 views

conditional removal of a field in a view

I'm displaying the latest 5 nodes (teaser view mode) in a sidebar region using views. The nodes have an image field but I only need to render that on the first node on the list. So, since the teaser ...
1
vote
2answers
901 views

Region not displaying in module

I'm working on a site where much of the back-end is handled by a site-specific custom module. I have a sidebar region and within Within module-thing.php is a call to <?php print render($page['...
3
votes
4answers
1k views

Add a Region for Slideshow in Zen

I want to create a region for a slideshow using the Zen Theme. The problem is, I don't know where to place the code in the page.tpl.php file. I want the navigation to be ontop, followed by the ...
1
vote
0answers
87 views

Adding a region to the individual item pages under a node in the gallery assist module

I'm trying to force a region into the individual item pages of a node that's using the gallery assist module to be able to display blocks. I started off making a context and adding the gallery assist ...
1
vote
1answer
2k views

highlighted and help regions

I'm teaching myself Drupal theming, so naturally, one of the first things to think about with my (Zen) sub-theme are regions. However, the documentation is lacking in its explanation of the meaning of ...
2
votes
3answers
6k views

How can I change the css classes on a menu's ul when it is placed in a particular region?

Drupal 7: I am struggling to figure out a way to change the menu structure that is printed when I place a menu block in a particular region. What I want to do is change the classes on the ul when the ...
5
votes
1answer
3k views

What is the relationship between regions and panels?

From here, it is clear that regions contain blocks, but when working with Panels, are regions still relevant? If yes how? What is the relationship between regions and panels? Thanks.
2
votes
2answers
1k views

Contextual links don't display in a floated custom region

I created two custom regions in my Drupal 7 theme and used CSS to float them side-by-side (to create columns). That worked fine, and I'm able to place blocks in the regions, but the contextual links ...
0
votes
2answers
1k views

Add View To page.tpl

I hope that you could help me out with this. After much time ive finally managed to work out how to takeover the space that my breadcrumb was taking up. With this bit of space i thought about adding a ...
3
votes
1answer
877 views

block-[region].tpl.php is not working?

I just created the Blocks and Regions in drupal 6. Now I want to align these regions (by using DIV id's etc..), so I created a block-[region].tpl.php file and write HTML and PHP scripts. Unfortunately ...
3
votes
2answers
2k views

Get current region name in node template Drupal 7

I need to find out what region the node block is appearing in within the node template. I am using node block module to display nodes as blocks but need to know what region the node blocks are ...
25
votes
1answer
14k views

Can regions be printed within a node template?

Can regions be printed within a node template, or are regions strictly confined to page templates?