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

learn more… | top users | synonyms

0
votes
0answers
9 views

Drupal behaviors not behaving as expected

I created a custom block which also loads some JS to handle some dynamic link creation. It was working perfectly last week and when I came back to it this week it stopped working. function ...
0
votes
1answer
13 views

Drupal - block deleted - how to retrieve

I just posted this to StackOverflow, but then I noticed this group, so apologies if this is a duplicated question. We're running version 6.14 of Drupal (old, I know). On of our users recently ...
0
votes
0answers
13 views

Some blocks not updating untill clear the cache

My Recent Forum Topics and Recent Contents blocks are not Show new contents untill I clear the cache from Performance section. I've added these standard blocks to my homepage but they don't work. ...
0
votes
3answers
22 views

Contextual Filters for a Block on a Page

I am trying to figure out how to create a page with dynamic content within a block. For example, a simple "About Us" page may have sub pages of "Contact," "Blog," "History," "Locations" I would like ...
0
votes
0answers
8 views

Force views to write exposed form block info to {block} table during install profile

In a D7 install profile, I am trying to modify the location of a exposed filter block with db_update(), where the view is defined by a module's hook_views_default_views(). At this point it doesn't ...
0
votes
1answer
8 views

Need responsive footer for venture theme

For my website I am using the venture theme of version 7.32. I found that every part of the webpage is responsive for mobile so far, except the footer section does not fit and align with the rest of ...
0
votes
1answer
14 views

How to use hook_block_view_MODULE_DELTA_alter on Views-exposed form?

I want to use hook_block_view_MODULE_DELTA_alter to modify a Views-exposed form. The URL path to the configuration page for the block is: ...
-2
votes
1answer
31 views

how to create custom block with dropdown list in drupal?

i want to create a custom block for dropdown list which i can display in all pages. /* *implements hook_menu(). */ function dropdown_page_menu(){ $items = array(); $items['page/layout/%'] = ...
0
votes
0answers
17 views

how to make a widgets in drupal?

I have made a dropdown menu which i want to display in all the pages. when the submit action perform and hit the drupal_goto(). /* *implements hook_menu(). */ function dropdown_page_menu(){ ...
0
votes
0answers
30 views

Adding a Block Into Region

Using several different themes, I'm looking to add a generic region to the bottom of each "content" section of my webpage. The code I have so far is. . . . with Social Share being the name of the ...
0
votes
0answers
20 views

How to disable caching of Views blocks on per user basis?

I created a Views block "Similar content", which shows nodes similar to current. I want content of this block to be cached, but renewed every hour. So I set Time-based caching with "1 hour" value, and ...
0
votes
0answers
9 views

Adding Meta Tags to Menu Link Blocks

I have successfully added Meta Tags to the front page of my Drupal 7 site and to pages. However I can't seem to add meta tags to blocks? How do I do this?
0
votes
2answers
40 views

How not render a region on specific page programmatically on Drupal 8

I put a custom block (develop for me) on sidebar first region for every page, every fine, but I want that this block not render on the home page. On my module, I made this: funtion ...
0
votes
0answers
6 views

How to change the order of execution of features in features module

I have a features module "X_slider", Which contains A Content type, block view to list same content type, half dozen nodes of same content type. And some variables. What i need is when i install that ...
0
votes
0answers
8 views

Configure Block Page does not have Region Settings Dropdown (Drupal 7)

When I go to configure a block at: admin/structure/block/manage/block/999/configure there are no options to select the region where I would like the block output. However the table at: ...
0
votes
0answers
5 views

How to get Currency module exchange value token for block?

I've recently installed the Currency module with the Yahoo! Finance co-module and was wondering how to post the current exchange rate into a block using the token system. [currency:USDtoJPY] or just ...
0
votes
2answers
25 views

Why is my image with URL that links to external site in a custom block not showing?

I made a custom block in header that houses the following html along with 4 more of the same html for different social media sites: a href="https://socialmediasite.com" target="_blank" img ...
0
votes
1answer
28 views

How can I specify where an image is uploaded

I have a slideshow block that does a slideshow for a news stories that take two images. An image for the page and a teaser image for the slideshow. but the image never shows up in the slideshow. ...
0
votes
2answers
28 views

who to display a block to a specific user?

I need to display a block just to a specific user. I don't want to create a role just for a user. that does not make sense!
0
votes
2answers
28 views

No front Page Content Error

While creating a new view and after added the specific content to it.It's not showing the content which I've created instead it's showing "no front page content has been created "
0
votes
1answer
61 views

Display block after some action (saved node)

I want to display block after an action. My user will create new content (node). After he save it, the content is shown with a specific block (only once, no further). I was looking on trigger module, ...
0
votes
1answer
21 views

Block defined in code not appearing in admin interface

I have implemented hook_block_info() to define a block inside a custom module 'x'. I have followed the documentation and believe the values in my array are correct. I have cleared all caches multiple ...
1
vote
1answer
44 views

How to render a contact form in a theme

I am looking for a way to display the side-wide contact form in a block (through my .theme file). Using this code won't work (as contact_form is not a content entity?): // get default form // get the ...
0
votes
0answers
17 views

Webform form results into same form in result page

I am trying to create webform with custom result page. In 'Form settings' page I set Confirmation page and in confirmation message insert my php code. Here is code: <?php ...
0
votes
0answers
18 views

Suggested article blocks

Hi I've been trying to create a view that uses taxonomy to generate suggested articles to users. I wanted these articles generated according to their relation with the taxonomy term of the current ...
0
votes
0answers
26 views

Custom block.tpl not affectiong all blocks

I have a custom theme and in the templates folder I have copied block.tpl and changed H2 to H3 and added a CSS class to the content div. Changes are taking affect and drupal is loading my block.tpl ...
0
votes
1answer
26 views

How to bring custom block theme suggestions into the right hierachy?

I have to create theme suggestions for my content block types (custom blocks - configured via admin/structure/block/block-content/types), because i didn't find them as default suggestions. The ...
0
votes
0answers
8 views

How do I debug why a block in an exposed form not rendering from view?

Using Commerce Kickstart 2 All of a sudden, the search block (which is an Exposed Form generated from a View)has stopped rendering. I have not touched that View in quite a while so I have no idea ...
0
votes
1answer
29 views

Block field to referene a view

I am struggling to find a way for a custom block type of mine to reference a view. Basically I want a field of the block to show some of the newest articles. Using the entity reference field and an ...
0
votes
1answer
22 views

Block error on CMI

I have two identical sites on Drupal 8 (A and B), on (A) I created a custom block(block/add), and then I export the configuration(drush config-export) and import this config on (B) (drush ...
0
votes
0answers
22 views

Listing entity translated nodes

I've installed the entity translation module and everything is translated correctly, the only problem is that when I change the site language, translated nodes are not listed anymore in the main page ...
0
votes
0answers
17 views

A view of existing blocks?

my aim is to make a grid of existing blocks. I've Tried to make a Content based View and filter it via Block ID's, but when I came to filter this View, I found no such option. I've tried to check the ...
0
votes
1answer
28 views

How to add a custom field to views block

I have a view (block) created. When I modify the view block, I have only the field "block title" in the form. However they are 3 fields (block title, block description et block body) in a block of ...
0
votes
1answer
7 views

Advertisement block changing

I have a Drupal 7 site, where there is a normal static block at the top of my content region. This is basically an advertisement with some full html content. Now I want to have a second similar block, ...
0
votes
1answer
30 views

How to insert a block inside the content?

I need to insert a block inside in a specific place of my Drupal posts of only one type. I understand that would be done through page.tpl.php file but can somebody explain how do I actually create ...
1
vote
0answers
35 views

Ajax form works on page but not on block

I've created an ajax form with drupal API. The ajax functionality works if I render the form on a page with hook_menu, but it doesn't when I render it in a block. This is how I create my block: ...
0
votes
1answer
16 views

Blocks stopped showing on views page

I was hoping you could help me with this problem on my website. I have a views page "News" for a long time now. (q?=news) I also have 2 blocks that I want to show on that page. On the configurations ...
0
votes
0answers
11 views

Block loaded via AJAX needs to use $_SERVER['HTTP_REFERER'] but cannot because that is the page itself

I'm caching my site and blocks but using the AJAXblocks module to load a dynamic module that I do NOT want cached after the cached page has already loaded. This works great, but now what I want is for ...
0
votes
2answers
31 views

Don't show blocks on some pages

I don't want to show blocks inside some pages, and I can't touch the theme files. Is there any way to do this programmatically inside a module?
1
vote
1answer
35 views

2015: What am I missing to get a simple hit counter block by page?

I've tried every recommendation I can find; I've enabled statistics and advanced statistics and can see that hits are being counted. I can display lists by what nodes are the most hit, etc; but I just ...
0
votes
1answer
41 views

Search API Views - How to display facets on a views block?

I am using Search Api Views and Facet API to achieve that. I am trying to enable facets to a views block, or when calling a view programmatically, but unfortunately they are not displayed as ...
0
votes
1answer
33 views

Custom node field type should also support content blocks in D8 - what to do?

I'm using https://www.drupal.org/project/paragraphs for nodes. "Paragraphs module comes with a new "paragraphs" field type that works like Entity Reference's. Simply add a new paragraphs field on any ...
0
votes
2answers
31 views

Question about views (related to page specific blocks)?

Lets say I have a website called "website123" along with several pages called "pageA", "pageB", "pageC" and "news". Each of these pages has custom blocks that will only display on these pages. (Think ...
1
vote
1answer
43 views

Block loading behaviour in Drupal 8 in a performance sense through the visibility settings

The following scenario: - i have for example a standard block region through a pages of a site: "highlights" - for the frontpage i have an additional region: "highlights_frontpage" - i put a block ...
0
votes
1answer
19 views

how to set a global variable that is referenced throughout the site?

i'm trying to avoid programming and hoping i could do this with modules: I have a classified ad's website which has about 100 categories where users can add an advert. The thing is these are all ...
1
vote
2answers
32 views

Is this block safe from code injection exploit?

Thanks good people here, I have create a simple module which generate two blocks as follows: function myblockmodule_block_info(){ $block['myadblocks'] = array( 'info' => t('My first ...
0
votes
2answers
14 views

How to define multiple blocks in a module?

Thanks to this tutorial, I cam up with this block-generating module: function myblockmodule_block_info(){ $block['myadblocks'] = array( 'info' => t('My first ad blcoks'), ...
0
votes
0answers
37 views

Drupal 7 module to create blocks?

I am wondering if there is any available module in 7 that creates some simple blocks? I need to be able to use script and iframe tags in the blocks but neither input formats nor modifying them ...
0
votes
1answer
49 views

How to avoid script being injected into costum blocks?

I have a custom block in which I put iframe and javascript ads. I noticed that recently they are being exploited so that attackers add some script to them (i.e on custom block table). I use Full html ...
0
votes
0answers
16 views

How to create a submenu based on taxonomy in node list made by a view?

I have a view showing a grid of content nodes. They all have taxonomy terms. I wish to make a block or expose a filter (or something else) that will have all the terms listed in the nodes who are in ...