Blocks are self-contained collections of content and functionality that are displayed within theme regions.

learn more… | top users | synonyms

-1
votes
0answers
15 views

I'm need to change the behavior of the callback module in drupal

I need help I'm need to change module callback in drupal. Nao when installed the module named (Hi-slider) the normal behavior it's like (page/node) and I wanna change to a (Blocks); because it would ...
0
votes
0answers
15 views

Block to Block Communication

I am creating a view that displays content in styles that vary as a user scrolls down the page similar to the windows tiled start menu. Using views I know that I can format an unformatted list to do ...
0
votes
1answer
19 views

Creating a view with a dynamic link from taxonomy term

Trying to create a view block with a list of five links Event Details (dynamic) Cause (dyanmic) Sponsors (statis) Volunteer (static) Register (static) Dynamic url will look like this: ...
0
votes
0answers
28 views

Load calendar event details in different block on same page

I'm using the calendar module to manage my event list and I would like to be able to click an event link in the calendar in the main part of the page and have the event info load in the same page's ...
0
votes
0answers
15 views

Change a heading?

A panel has an article title that is wrong and I'd like to make it right, but; I can't find where the wrong data is coming from. I'm having a little difficulty identifying the components of Drupal, ...
0
votes
1answer
29 views

Pages on which this PHP code returns TRUE

I have a problem with this function in drupal. I have a block and I only want to show it if a specific condition is met, the problem is it does not work as I imagined. This is what I want: <?php ...
0
votes
0answers
16 views

Add class to view block if view has count result using template.php

I need to add class to view block if view has certain count result. For example if count result is 4 or less. I have working code for view format HTML list, but I need to use Unformatted list. ...
0
votes
0answers
26 views

How to add class to view block programmatically

I need to add class to view block programmatically, but could not find working way to do it. My view format is Unformatted list. I have this in my template.php: function ...
0
votes
1answer
21 views

How to display 2 blocks in one view

I am using quick tabs, but I want to display 2 blocks under each tab, been told I should use attachments but I don't get. How can I achieve this? So each tab displays 2 blocks when clicked like in ...
0
votes
0answers
17 views

When I click on the demonstrate block regions, I get an access denied message

I logged-in as an admin. And when I click on the demonstrate block regions, I get an access denied message in Drupal-7. I have cleared all caches. But, still get the same problem. Any idea how to ...
0
votes
1answer
20 views

How to edit a webform block (not the webform itself)

I have one webform block I would like to edit. I know I can use hook_form_alter, the problem is that any changes I make using it are affecting the actual webform plus the block. How can change stuff ...
1
vote
1answer
20 views

In which file to add the cache_clear_all function

In my situation I would like a certain block on my page with real time information to not be cached for anonymous users. Literature listed below: https://www.drupal.org/node/42055 ...
0
votes
2answers
22 views

Taxonomy hierarchy in filter block of views isotope?

How can I set the filter block to show a hierarchical taxonomy? As far as I can see there is only a flat list being built by default. How can I change this and apply the hierarchy of a taxonomy? this ...
0
votes
1answer
23 views

Block configuration per region

Anyone ever accomplished building a module that manages to have block configuration per instance? The main issue with blocks is that each block does only one thing no matter where it shows up, you ...
0
votes
3answers
33 views

Drupal 7 template_preprocess_block

I am trying to alter content of the system main block but only on the front page. I have added template_preprocess_block() in the template.php file, but is_front is FALSE even though I am on the front ...
0
votes
2answers
26 views

dynamic block title for block-view of referencing nodes

I have a block listing nodes that all reference the same 'parent node' (etity reference). I would love to see the title of the referenced node as a title of that block. Example: on a record label ...
0
votes
2answers
50 views

Promoted to frontpage teasers in a block

General: I am new with Drupal; so, I was trying to add new regions to Zen (sub)template, but got very confused why contents of my new-created region "content 2" appears on page above the original so ...
0
votes
2answers
37 views

Alternative to panels

Is there any alternative to Panels that can be used for smaller websites where Panels may be a overkill? I recently took up DP development again, haven't worked with DP7 for approx a year now, did ...
0
votes
1answer
14 views

Views, Blocks, and Content Types

I made a content type where I have used views to make my content into a block. But the content type's page shows two copies of the data. One from the content type, and another from the block made ...
0
votes
0answers
25 views

Is there a way to add a wrapper class to my blocks?

While views does a great job of placing blocks and content on a page, I am trying to make my website responsive. It is true that the blocks are responsive. I am just trying to make it so that the ...
0
votes
2answers
26 views

Dymanimcally add links in main menu (e.g. last 4 nodes)

I have main navigation menu with root menu items. A request is that one of those have links to latest 4 nodes of a certain content type. So for example if I have a structure similar to this: -Parent ...
0
votes
0answers
18 views

ImageFlow view link to content problem in multi language site

Using views ImageFlow in multi language site. Suppose default language is Arabic and another language is English, when imageflow block in default language link to content is works fine. When turn ...
0
votes
3answers
39 views

Responsive Blocks

How can I make blocks shrink while staying on the same line as the window gets smaller? As of right now my blocks are going under other blocks as my window gets smaller. How can I make my theme ...
0
votes
1answer
25 views

Custom module blocks: where to put html code?

I have a custom module that implements hook_block_view. I would like to know where should I put extensive html code for a block content. For example: $block['title'] = t('TEST'); $block['content'] = ...
0
votes
0answers
16 views

Modify menu_block

I want to add some html tags to specefic block in my site . This is my block and bold one is the html tag i want to add . <div id="block-menu-block-1" class="block block-menu-block notactive ...
-1
votes
2answers
21 views

placing blocks side by side

I found a solution to my question but the problem is I don't know where to insert this code. Is there a way to input this code through the site or do I need to go into the css files to do this? ...
0
votes
1answer
23 views

better exposed filters for block view

I have created a block view for filter options and tried to display the filter options as check boxes using Better Exposed Filters(BEF) but in the BEF settings i don't get check box option in select ...
0
votes
0answers
19 views

node id for export blocks

I have a webform node and I want to export it (via node export) to other sites - the issue is when the node id is already assigned drupal assigns a new id. <?php $block = ...
0
votes
0answers
11 views

Header Image module - no header image nodes listed?

I have tried Header Image - https://www.drupal.org/project/headerimage but it doesn't seem to work. I am having difficulty creating and using a header image node https://www.drupal.org/node/241454. I ...
0
votes
0answers
29 views

How to show drupal user registration form in some other block

I am trying to build a custom registration system by altering drupal default registration system. I am able to do it successfully. My problem is that when i want to show registration page in some ...
0
votes
0answers
7 views

Content is not displaying despite specifying page under blockname- “Configuration”-“show block on specific pages”

Content is not displaying despite specifying page under blockname- "Configuration"-"show block on specific pages". I also enabled the specific content type to be displayed on that block. I checked ...
0
votes
2answers
25 views

Blocks are invisible after hosting drupal7

I am facing with a problem in drupal7, I am new to drupal7 too. When I run my website in localhost everything fine, blocks and menu are visible. But after I host my website in GoDaddy, that blocks and ...
-1
votes
0answers
13 views

How can we add block's contextual links (block edit links) in TB Mega Menu blocks?

We are not able to show edit link for blocks in TB MegaMenu, means there is no contextual link for block configuration. Did anyone work on that?
0
votes
1answer
22 views

How can i hard-wire a link, in blocks, using $base_url or something similar?

I'm trying, unsuccessfully so far, to create a block that is simple hard-wired link. but i need to use $base_url or something equivalent (like base_url(); ?) but i guess adding php is not allowed. i ...
1
vote
2answers
54 views

Showing block in specific urls and content types

I'm using this code to show block in specific urls and content types. <?php $match = TRUE; // block is visible on the content types entered here $types = array('product_display' => 1, ...
0
votes
1answer
16 views

Views Slideshow Stops Working Alongside Other Slideshows

I've made several thumbnail-sized cycle slideshows as block views, which display fields from nodes created via an HTML feed. Each slideshow is basically the same, but they all use a different taxonomy ...
1
vote
1answer
31 views

Showing a block in specefic content type and urls

I have a block that i want to show it in a specefic content type and some urls . i tried to add php like : <?php $match = FALSE; // block is visible on the content types entered here ...
0
votes
1answer
27 views

Creating New Region In Impulse Theme

Hey guys I am just looking for help with my page tpl file.... I understand after researching that I need to add code to a specific region in the file I am unsure of what to exactly implement (code) ...
0
votes
1answer
23 views

Drupal 7 Members Directory Problem

I created a member directory using view and it works well but I tried enable "Exposed form". I changed "Exposed form in block" to Yes & also "Use AJAX" to Yes. I defined "Contextual filters" to " ...
0
votes
0answers
6 views

Problem with sidebar-second displaying facets

So, I'm just using the bartik theme at the moment, and I have a view based on a search index displayed in a grid. The problem I have is that the second-sidebar that contains my search facets is ...
0
votes
1answer
22 views

How to make blocks contextually aware of current webform page

I have a multipage Webform that lives at a single URL and I would like to place certain blocks depending on which page the Webform is on. None of the webform hooks give access to page number, and the ...
0
votes
1answer
29 views

Where is $page['sidebar_second'] rendered? I want to edit the style of the <ul> listing of the recent comments

The comments in the block recent comments is styled with an unordered list. I want the points of the list beginn exactly under the N of New Comments. Google Chrome tells me that there is a ...
0
votes
3answers
28 views

Displaying a Block on 2nd level pages but not 3rd level

I have a block that I would like to only display on documents/* but not on /documents//. I have set 'Show block on specific pages - only the listed pages' 'documents/*' but this displays the block on ...
0
votes
0answers
37 views

Removing Anonymous DIV from search-block-form

I have created a sub theme under Bootstrap and am having issues removing the "anonymous" div from inside the form. Here is the displayed code: <section id="block-search-form" class="block ...
0
votes
1answer
20 views

Zen 5: How to get navigation menu on top with narrow viewport?

I'm running Drupal 7.28 with Zen 7.x-5.5. In the default setup, there is a region on the right side named "First sidebar" which contains a block named "Navigation". I have put my navigation links ...
1
vote
0answers
16 views

How to print price integer in drupal commerce cart block?

How to print price without decimals in drupal commerce cart block? I found this code: <?php global $user; $order = commerce_cart_order_load($user->uid); $wrapper = ...
0
votes
3answers
33 views

How to hide a block based on content type? [duplicate]

I have a custom content type where when loaded, I want to HIDE (no show) a regions block. Been looking around trying to find the answer and have come up short. Ideally, I'd want to do it in a ...
0
votes
2answers
26 views

Get Post data of a view in inside a block

I am actualy tring to get the posted data from a views filter and display it inside a custom block. This is what my code looks like for now <?php /** * Implements hook_block_info(). */ function ...
0
votes
0answers
11 views

Using content field widget in custom block?

I'm trying to figure out an easy way to implement a content field type (image_field) with a widget (imagefield_crop) on a custom block. The block currently has an upload image feature, but I want to ...
0
votes
1answer
35 views

Form and Textcontent in Block

I'm having problems with adding a form and text-content into a block. To get both, form and text, into my block, I use render() on my form, but I read, this isn't the best way to do, but don't found ...