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

learn more… | top users | synonyms

0
votes
0answers
17 views

How to call JavaScript or JQuery scripts in Drupal 7 blocks

Since the Webcam module seems to have fallen into disrepair, I tried to create Blocks containing an <img> and a small <script to automatically reload it. An SO question gave me some hints how ...
0
votes
1answer
20 views

Exclude a block from the views result

I've created a views page named "Search" with a path of "product-page". Then I created a views block named "Sponsored Ads". With the "Search" page, I exposed some fields for the filtering, then ...
0
votes
1answer
22 views

Restrict blocks to specific pages

I am using someone else's theme on a very small site. Specifically, I want to display blocks on specific pages. I am able to display blocks on only and on all pages except . My understanding is ...
0
votes
0answers
18 views

Duplication of code when creating custom block template

I'm a newbie in Drupal but I'm working on a project with drupal 7 and I'm going out of my mind. I have a block which content must be wraped by different links if is seen on desktop or on mobile ...
0
votes
1answer
33 views

Theming / modifying the markup of default search block form

I'm trying to modify the basic search block form that comes with Drupal 7 core. I have a custom theme and inside my templates folder I copied the search-block-form.tpl.php and modified it like so ...
0
votes
1answer
19 views

add custom data attributes to block from block configuration page

Here is what I would like to accomplish: 1. Add data attributes to block (for example: data-key="value") 2. Nice to have: add a text area to block config page where i can enter data attribute ...
0
votes
1answer
20 views

How to put two blocks inline in menu bar

In every theme I tested so far, when a block is added to Menu bar area, each block is always shown stacked in pile, my question is: There is a way to to make two or more blocks showing inline in ...
0
votes
0answers
13 views

Webscrapper that only adds new content

I would like to make a webscraper that updates the results of a volleybal team and puts the most recent score in a block on the frontpage. Got the scrapper working with kimono. But this imports all ...
0
votes
1answer
20 views

Show Block view of Restricted Content Type

I have a content type of Events which i make restricted for anonymous users via content_access module. But on the home page there is a block view of most recent Events. I don't want that block view to ...
1
vote
1answer
30 views

Show block on all 404 / 403 pages only via context

Without having to install even more modules on the site for context. I know there a boat load of plugins for context, but I was wondering if this can be achieved by just using core context: I ...
2
votes
1answer
25 views

Blocks display in the wrong place and can't be turned off

I'm experiencing problems: Some of my blocks are appearing in two blocks at the same time. Some blocks appear when disabled, even if I disable the block is still appears in one of the locations. It's ...
0
votes
2answers
31 views

Display block on two different pages

I'd like to view my block on pages where the content type = booking and where the address is node/add/booking (basically add, edit and view nodes), how can I accomplish this? So far my code only shows ...
-1
votes
1answer
19 views

Callback on Bean save?

Is there any callback hook like hook_node_insert / hook_node_update when saving a bean block?
0
votes
0answers
30 views

Drupal 7 custom Login block [closed]

I created one user-login.tpl.php and my own theme. when I logout it shows default drupal log in. after that i placed url like this(drupal/user) my custom login form comes along with my theme. I Don't ...
0
votes
0answers
10 views

Webform condition not working in custom theme as block

I created a webform with conditional, If radio-value X is set then show input field Y. I show the form as block on my theme with this snipplet: $form = module_invoke('webform', 'block_view', ...
0
votes
1answer
22 views

Using Drupal 7 & Omega 3.x - Page Titles + Edit Tabs are not showing up on node content types!

It seems that my page titles and the edit tabs have disappeared. I'm currently using omega 3.x and drupal 7. However the weird thing is that its showing up one content type, but not on others. I even ...
0
votes
2answers
21 views

Site structure - nodes and blocks

I'm new to drupal and I try to understand the structure of it. Let's assume I want to do the following regardless of the existence of a module doing this concrete job – just to understand the ...
0
votes
0answers
12 views

Recruit Distribution job search pages

I am using recruit distribution, I have configured everything but one thing that is giving me headache is how can I change the blocks in the jobs search page, I could not find any way nor any template ...
0
votes
1answer
31 views

Drupal block overriding with template file does not work

The Drupal verion I'm using is v7.34. I'm using sub-theme created from Bootstrap as base theme. My problem is, I want to override the "User Login Block" and put it in the header region (top bar), so I ...
0
votes
1answer
29 views

Best way to convert PHP block to improve site [duplicate]

I've just taken control over a Drupal site which the old admin used php blocks. I normally work on Joomla sites but from research and advice from others PHP blocks don't help the site in the long run. ...
1
vote
2answers
57 views

How to add a different specific image for each page in a region? [closed]

I want to have a different specific image on every page in the same region for each. I don't want to have to create separate blocks for each one. Is there an easier way? I will be getting the images ...
0
votes
2answers
37 views

Drupal aligning blocks and content next to each other

i have a view page and two blocks which i want to display next to each other. I want view content on left and two blocks on right, with one block on top and other just below it. But i am having ...
0
votes
0answers
19 views

Remove unused views display id

I was making changes to the views display machine names or(ID) and while i create some display it popped up this message (Display id should be unique) which was by this name "power_sector_1_1" and it ...
0
votes
3answers
113 views

Alter weather block behaviour?

In the weather module, if a user has not configured a custom weather block, the block does not display: /** * Implement hook_block_view(). */ function weather_block_view($delta = '') { global ...
0
votes
1answer
31 views

Adding a subtitle to the main title in Druapl 7

My Website name is Subham Soni. I want to add two more lines below it. One as "Developer" and then in another line a quote along with the author. How do I do it?
0
votes
2answers
38 views

Drupal hook_theme() Template Issue

I am creating a block and I cannot get it to render correctly. I need to render a list of links but it is not working and it is showing nothing on the page. I have the hook_theme() function like ...
0
votes
1answer
26 views

Simple Custom Block

So I am trying to create a block to list the cities of the scrapyards in the system and i've followed some tutorial and i'm not even getting the block to show up in the list. I have dir created at: ...
0
votes
0answers
17 views

Why does my module's hook block_list_alter only list a few blocks?

function mymodule_block_list_alter(&$blocks) { foreach ($blocks as $block_id => $block) { debug($block->module); } } the above code debugs only two messages, each time "system". ...
0
votes
1answer
23 views

Unable to print form submission result

The structure of my form is as follows: Form is built here function mymodule_member_search_form The form submission processing happens in the callback function ...
0
votes
1answer
18 views

Faceted Search Block displays values from other facet blocks

I'm using the Faceted Search API (drupal 7) and followed this Tutorial: Part 1 and Part 2 All worked fine but there's a little Problem with the Values each Block displays "Kategorie" and "Serie" ...
-1
votes
1answer
17 views

Print title of block group to allow for collapsible group

Currently I am working on a site where I need groups of blocks which should be collapsible. The blocks are grouped by using block group module. For the collapsible part I am using collapsiblock. By ...
0
votes
1answer
12 views

Block displaying in 'content' region of admin theme?

The below implementation of hook_block_info renders a block in the 'content' region of my theme. Unfortunately, it also appears in the content region of the administrative theme. The documentation ...
0
votes
0answers
30 views

Drupal 7 doesn't show date field in block but it does in page

I have a content type with a datetime iso field and pop-up calendar widget. The field collects an end date too. In the view (page) and table format it shows correctly. In the block in unformatted ...
0
votes
1answer
30 views

User Login block missing

It vanishes suddenly without any notifications today. I am using Drupal 7 with "Mix and Match" theme. I used to working this morning. Website shows no error at all. I have tried the following to get ...
0
votes
1answer
19 views

Problem with change position of Sidebar

I am using the Droupon theme of Drupal. I am facing problem while changing the sidebar from right to left. Using CSS I can change it. But I want to know if I can change the position of the sidebar ...
1
vote
0answers
36 views

Cannot Display Block below content

I have a block for a view that i'd like to display on a certain page, but BELOW that page's content. I have the specific page thing working fine, but no matter how many times I rearrange the block for ...
0
votes
1answer
25 views

In place editor for blocks in Drupal 7

I'm trying to make certain blocks editable for users with a certain role. I'm looking for a module which would provide an in-place editor for blocks. There's a module for this called Block Edit but ...
0
votes
1answer
25 views

Why my theme suddenly gone blue after an update?

After updating the Bartik 960 template on Drupal the homepage highlight each of the blocks on the page in blue. It looks like it's gone into a debugging mode, but I'm not sure how to fix it.
0
votes
1answer
47 views

Display node in multiple context

I'm using Drupal 7, and this problem have been tormenting me these past few days : let's say I'm using the basic content type Article, with basic view mode : full and teaser. Now I'm creating a ...
0
votes
1answer
29 views

Embedding Views block in Body field makes Body field disappear

I have a block that I need to embed in a node's Body field. I've tried module_invoke() + PHP Filter, and I've also tried the Insert Block module. In both cases, whenever I embed a Views block, it ...
0
votes
2answers
59 views

adsense code not working in drupal 7

I have put the following code from adsense in a block with full html filter : <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> <!-- newad --> ...
1
vote
1answer
120 views

How to refresh/update a Block or View after a form submit?

I have a View of created entities displayed as a block. On the same page I have a form with which new entities can be created, and this form submits through AJAX because I do not want a page reload ...
0
votes
1answer
24 views

print title and contents on a custom tpl.php template?

im making a custom theme for drupal, and im having a hard time trying to understand how to adapt one of my themes to drupal 7. Right now im having an issue because i need to set some classes on all ...
0
votes
0answers
11 views

Correct use of the context module to overtake the blocks assignments page?

Currently I'm using the regular blocks page to make assignments to the head/footer regions as those are relatively static. But one issue im running into is that I need to assign the "main content" ...
0
votes
2answers
16 views

Printing a form inside a block

I have a specific block that has some form logic, intended for newly registered users. And I am a bit lost on what the logic would look like to render the contents for the form inside a ...
0
votes
2answers
21 views

'path' in array with special characters using imagecache

I have a folder in my sites/default/files directory filled with product jpg's gathered from an external server and back end stock take system. The files look like this... Bread.jpg Bakery.jpg ...
0
votes
1answer
106 views

Can't edit Main menu block in sidebar by clicking on “gear”

Today on one of my websites I encountered something strange. I have my "Main menu" block in my left sidebar, and when I hover over that block, the "gear" to edit it shows up, but clicking on it does ...
0
votes
2answers
29 views

Place images/icons (to twitter, facebook…) in the lower right corner of the header [closed]

This is probably a very basic CSS question, but I was unable to figure it out. I have a theme that contains several header blocks. Except the main header block, none of those are used. The header ...
0
votes
2answers
37 views

Block restriction

I have content with URLs in the following pattern: http://example.com/subdirectory/working-site/major-event-2/event/4580/speakers There is a Views generated Block which I am trying to restrict ...
0
votes
1answer
54 views

How to edit and delete drupal 8 custom block content?

I am not getting any option to edit my custom block body content and not able to delete also. Please suggest me. Thanks