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

learn more… | top users | synonyms

0
votes
2answers
18 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
17 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
14 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
0answers
13 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
18 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
18 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
10 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
27 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
5 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
24 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
11 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
18 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
51 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
11 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
28 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
26 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
19 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
28 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
15 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
13 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
30 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
22 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
10 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
34 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 ...
-1
votes
1answer
26 views

Module Block destroys head

I'm struggling with blocks and a custom module. What I've got so far is a module which generates a block with that code: function commerce_bulk_invoice_block_info() { $blocks = array(); ...
0
votes
0answers
4 views

How to Add Location Search Block

I have Location and Location Search Modules enabled. Under Search Settings (/admin/config/search/settings), I have selected "Location Search" under Advanced Search Modules. This allows a user to ...
0
votes
3answers
32 views

Render custom block by block name

I have created a custom block in the Drupal CMS. Say it is called "test_block". Is there a way to render this block in a template file using the name of the block? Thanks,
0
votes
1answer
16 views

Export my block configuration

I have used configuration management to export and import my drupal configurations.However,when i add a new block,the configuration management can't track the change of block and i can't export the ...
0
votes
3answers
50 views

Debugging what has been submitted in a form

I would like to like to be able to print out what has been submitted in my form in the submission form. How can I achieve this?
0
votes
1answer
38 views

Custom block won't display in admin - Drupal 7

I am running into an issue where my block won't show up in the admin section of my site. I've added it to example_block_info() where the other existing blocks are declared. I've also added content in ...
0
votes
0answers
15 views

Show Block through node.tpl.php with filtering of “Only the listed pages”

For some reason, I have to show blocks within my node.tpl.php. I am showing the individual block like this:- $block = module_invoke('block', 'block_view', '18'); print render($block['content']); ...
0
votes
1answer
25 views

Override locale_block_view in custom module

In the locale.module file there is: function locale_block_view($type) { if (drupal_multilingual()) { $path = drupal_is_front_page() ? '<front>' : $_GET['q']; $links = ...
0
votes
0answers
23 views

Full HTML Block displaying incorrectly to Anonymous

I have been looking for help on this issue for awhile, but I can't seem to crack it. For some reason, I need to have "Bypass content access control" enabled to get this to look correctly. I may be ...
0
votes
1answer
19 views

Single Bulk Operation on several blocks

I would like to display on a single page several blocks generated by views and associate the same bulk operation to all of them so that the user only needs to click execute once. Where would you ...
0
votes
0answers
11 views

Is there a module for block translation for anonymous user

Hi I am wondering if there is a way to search the content of a block and see if there are user defined translations for any of the words in the block and if there are then give a option to translate ...
0
votes
1answer
15 views

If logged in, My Account/Log Out are missing, how can i fix?

I have a Drupal Commerce website in development and there is a problem with the User Login block. If logged in, it is missing the 'My Account / Log Out' links. But if logged out, is shows the ...
0
votes
1answer
30 views

View in views header still displaying when no result

I tried this question: Empty view is rendered even though there is no result And it didn't work I have a view of Judge nodes that displays using a contextual filter. Inside that view I have embedded ...
0
votes
0answers
31 views

How do you edit the contextual links on a custom block in drupal 8?

Currently the only link that shows on the contextual links for custom blocks is the "configure block" link. I want to add an edit link to get to the main content of the block, is this possible?
0
votes
1answer
20 views

I try to customize my block id and it doesn't work

I create a block which I want to theme. My block ID is 1. In my mind it was simple as create a file block--block--1.tpl.php and make some theming on it, but I didn't see any of my change. One ...
0
votes
1answer
21 views

Image as form submit

I am building a custom form inside a block that has a clickable image as submit. Here the screenshot of the outcome: Here is the form code: function my_form($form, &$form_state) { $image = ...
0
votes
1answer
37 views

how to put html in a .module php file [closed]

I have a input box created with html need to put in the specific block. I saw posts writing there to add the html by function but i cant do it since it is php file Is it right way to do this? what is ...
0
votes
0answers
23 views

Form inside a block that “feels right”, theme-agnostic

I am building an autoresponder-like form that fits a block. So far i've added title, a body, two input (name and email) and submit button. While the body feels right and uses the space in the right ...
0
votes
2answers
61 views

Create block programmatically based on node content

In Views we can create a block that the content depends on the content of a node using contextual filters. So we can pass variables and check the visibility of the Views-Block. Let’s say in our ...
0
votes
1answer
27 views

Make a block from a “part” of a drop down menu

I have a D7 site with a drop down menu at the top, the second item across the top is "About Us". Presently it looks like this, see attached pic. I want the "contents" of this part of the menu to ...
1
vote
2answers
35 views

How to create a Bean type programmatically?

I'm building a module that creates set of blocks using Bean module. How do I can create a Bean Type programmatically in order to be able to create the blocks?
0
votes
1answer
13 views

Enabling a block to inherit the settings of a sub theme

Being relatively new to Drupal, I apologize in advance if what I'm saying is unclear, but I'd imagine that a fix should be simple enough: Basically, I'd like to add a header block that functions ...