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

learn more… | top users | synonyms

0
votes
0answers
10 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
5 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
10 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 ...
-1
votes
0answers
10 views

Drupal Blocks/Widgets Width / Height Parameters [on hold]

The site I am maintaining has bugs in the header and widget blocks. How do I change this? Search bar is out of alignment with nav menu. News and Events widgets overextends if too much text is ...
0
votes
2answers
16 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
45 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
23 views

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

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
35 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
19 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
0
votes
0answers
3 views

Panel is removing my form tag

I've created a Panel showing a form declared in a module within a block, but when I save it and view it, it removes the <form> tag and does nothing. Any help why this could be happening? My ...
1
vote
1answer
20 views

How do I get rid of <p> tag in manually created block?

I'm trying to remove a <p> tag from a manually created block. This block only contains an image and nothing else. I have kpr() function outputting block variables but am not seeing where, or how ...
0
votes
1answer
8 views

Missing Logo block on a fresh build of Drupal 7 using Omega 3.x theme

I just did a fresh install of Drupal 7 and I'm currently made a sub-theme with omega 3.x and for some reason the blocks page is missing the logo block. I tried also uploading a logo image on the ...
-1
votes
1answer
30 views

Menu will not display - D7

I have an issue where I have created a menu within Drupal, assigned the block created by that menu to a region and set it to display on certain pages, but it's not displaying. It's a Drupal 7 site (v ...
-1
votes
1answer
15 views

is my menu-block not properly inserted?

quite new to drupal and having a small issue i can't seem to solve. it's quite a lot to start to explain so i think it's best to just send you the link and explain the problem. take a look at ...
1
vote
1answer
16 views

Cross domain menus and blocks, but not users and content data

I'm trying to create multiple sites(maybe over 20 sites) using the same menu and some blocks, but not others. I found these modules have very similar features/functions, they are Domain Access, Domain ...
0
votes
1answer
9 views

How to use Content Complete Module?

Tried to read https://www.drupal.org/project/content_complete but that didn't give me much so now I'm stuck. I've set what Content Type + Fields to use and Rebuilt Cache. Then I keep getting this ...
0
votes
1answer
16 views

Text only rotating banner

Is there any module for drupal 6 I can use to create a rotating banner with no images for drupal 6 site Thanks Colin
0
votes
0answers
17 views

I have set points for posting articles and its working but

I have set points for posting articles and its working but I also like to add Cash Credits along with it. Cash credits are just like the points system but it has to show "You have earned 50 Rupees for ...
0
votes
1answer
21 views

Entityform (block) redirect not working

The redirect field within entityform doesn't seem to have any effect. I'm using the entityform block module, if it makes any difference. I have also tried using hook_form_alter to copy to default ...
0
votes
1answer
13 views

How can I move a module block's title to display within the block's template?

When I give my module block a title it displays above my module block. How can I move this to display within my blocks template and not display above the template?
0
votes
1answer
12 views

Set the value of a hidden field in form block

Using the code below in a block, I am displaying a form in a block on all pages for a content type called Goals. I want to use this block / form to update progress on the goal to a content type called ...
0
votes
1answer
16 views

Grouping field in tabs - views

Under views when i select unformated settings and can Grouping field, it is working fine. Now i am using bootsrap tabs but it is not working How we can do this
0
votes
2answers
18 views

Configuring page visibility with HOOK_BLOCK_INFO?

This block displays on all pages not just the front page. Why? It is configured only to display on the front page? Isn't it? function my_module_block_info() { $blocks['my_block'] = array( ...
0
votes
1answer
33 views

block view is not displaying

This problem starts with the subtheme. I am using drupal 7 with a subtheme based on omega 3.1. For some reason node title and admin tabs are displaying only on the home page and two basic pages, ...
0
votes
0answers
14 views

Node Hierarchy not working in view

So I'm sorting a view based on it's parent node and I'm getting a peculiar problem, see here. It's not showing certain nodes which I linked to the parent node and even worse, it's showing duplicate ...
0
votes
0answers
10 views

Block under role's permission is show to users without these roles

i have a normal menu block for one administration section. In this block settings I have checked that this block can be view only to users of these role: administrator backend ad condominio ...
0
votes
2answers
26 views

How do I put registration form in panel in Drupal 7

I would like to know how to put a registration form or any other form to make a new content type in panels. I know the first thing to do is to put the registration form in a block. How can I do that?
0
votes
1answer
18 views

using hook_form_alter on a same form from 2 different modules

How will a predefined form behave if we have two different forms that implement hook_form_alter? I would explain my question by an example, because currently I got a crash on it: I have a predefined ...
0
votes
1answer
26 views

jcarousel not working on block?

1) Place this module directory in your modules folder (this will usually be "sites/all/modules/"). 2) Enable the module within your Drupal site at Administer -> Site Building -> Modules ...
0
votes
2answers
32 views

Hide menu item in specific block/region

I have two instances of main_menu on a page. One is in the header, using superfish. The other is in the sidebar, using menu_block. I want to hide a menu item in the sidebar and show it in the header. ...
1
vote
2answers
48 views

Save Link field in custom form

I'm brand new at making custom forms and I'm having trouble getting the link field to save to the database. The text body field saves fine but the link field object defined below it does not. I'm ...
1
vote
1answer
17 views

Better way of adding Image as Block in home page

I am designing a personal website. I wanted to display my photo in the side bar in the home page. Below is screenshot- To get the above display, I have created a basic page in which I have inserted ...
-1
votes
1answer
25 views

Fatal Error - Fatal error: Unsupported operand types in public_html/includes/common.inc on line 2999

The page of my work is not loading anymore! And Im not used to deal with drupal! What I have to do to the page load properly! I even cant login as user or see any page of the site! PLZ im really ...
0
votes
0answers
16 views

Permanent login form in header

I'm trying to create a login form which remains permanent in the header and doesn't go away once the user signs in. This is what my header looks like in page.tpl.php <div id="page"> ...
0
votes
1answer
31 views

How to programatically add block to Drupal 7 page tpl AND respect visibility rules?

I want to add a block programatically to a page.tpl.php file in my Drupal 7 theme BUT I want it to respect the block's visibility rules. I'm open to defining new visibility rules in PHP too but it ...
0
votes
0answers
19 views

How to display blocks in custom front page?

I used custom front page name page--front.tpl.php. it's full of html code. Now i want to add blocks in this custom page, but i don't know how to add blocks in this page.
0
votes
0answers
15 views

file_validate_size doesn't seem to work

I'm currently learning how to make a custom module that creates a block with a textfield and upload field. So far so good, only thing is: Drupal doesn't seem to respect my file_validate_size value. ...
0
votes
1answer
28 views

Drupal 7 - Anyway to make Facebook Picture take place of User Picture if not available

I am creating a view of users that displays a list of Users with Picture and Name. This drupal install allows facebook users to sign in and automatically have an account created. Their account is also ...
0
votes
1answer
25 views

Add block to form (before submit button)

I'm having problems placing a block in my form. This is what I have now: I have a register form and a fb button block. I say the block must be visible only when page is equal to user register page. ...
1
vote
1answer
48 views

Contextual filter only working on one URL

I've been going through posts such as View block not accepting contextual filter argument, Contextual filter on Views Block file not found, How do I get a block to use a URL to configure a contextual ...
0
votes
2answers
26 views

How to make a custom block listen to context module?

I've been creating my own module that consist an array of blocks. I plan to print them using context as oppose programatically as I already have the module on use (no need to reinvent the wheel). ...
0
votes
1answer
18 views

Adding a block to markup

I have created several content types and using views I have created blocks that take the uid as an argument and displays content that that author has created. So far so good. What I want to do now is ...
-1
votes
2answers
18 views

How to create multiple blocks for blog teasers from a single view automatically [closed]

I have created a site whose home page is built in a way that it will display 4 latest blog posts in separate blocks all the time. I have created a view and successfully created a single block ...
0
votes
0answers
16 views

Large unknown margin-left for Views blocks

I have a lot of fighting against some unknown large margin-left , around 30px in all themes I start to work with (Zen, Adaptive Theme) - I think it's for Blocks generated by Views... I haven't found ...
0
votes
1answer
18 views

How do I disallow blocks from showing on all node edit pages?

So far I have tried "All pages except those listed" node/0/* node/edit node/%/* node/%/edit/*
0
votes
2answers
33 views

Custom module template override not loaded

Hi I am desperetly trying to override the template of my D7 custom module's block here is my code : function lnr_block_info() { $menus = menu_get_menus(); ...
0
votes
0answers
16 views

Menu link description translation with apostrophe changed in &#039;

I'm having trouble with showing the description of a menu link in different languages. I'm using the module Menu Block for Drupal 7 to have submenus. I'm using a sort of tag language called Drupal ...
0
votes
0answers
17 views

How to seperate view custom link/url from view content [on hold]

I override block using these technic https://www.drupal.org/node/1089656. <div id="<?php print $block_html_id; ?>" class="footer-links-regions <?php print $classes; ?> ...
0
votes
1answer
24 views

Load .js only if block is loaded

Yes, something like that. If block and it's content are loaded in the page (so I guess detect by ID or something) it would load the .js, but if block is not loaded, it wouldn't load the .js. I need ...
0
votes
2answers
26 views

How to theme a blocktitle of a view?

As i am still developing some basic php skills: I want to theme the title of my views-block slightly (just color and fontweight) I have created a views-view--my-view--block-1.tpl.php and pasted the ...