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

learn more… | top users | synonyms

0
votes
0answers
5 views

Glossary mode on View Block

I know how to attach Glossary mode into View page, based on setting here. I have tried to attach this mode into one of my block, but it does not to work. Is there a solution that work for block with ...
0
votes
0answers
7 views

Send a Privatemsg in a Block?

I have user profile build with profile2 and I want user to be able to send a message quick (I'm using privatemsg to send my messages) once there are in the user profile. I would like to have a ...
1
vote
1answer
23 views

Are there Drupal 8 custom block type naming conventions?

With our ability to create custom block types and manually add additional fields in Drupal 8, is there a simple naming convention to create block--custom_block_type.html.twig to handle the layout of ...
-2
votes
1answer
12 views

show cart block in pop up

I installed drupal commerce module,i got show cart block in header ,If I click on it takes to cart page.I need a pop up of cart page on clicking show cart.
0
votes
0answers
9 views

Cannot find a specifc node within panels

Drupal beginner here, running v6. There's a title I want to edit that I absolutely cannot find anywhere in admin. I found the text string in the panels_pane table SQL export on this line ...
0
votes
4answers
42 views

How can I load a block's subject and body, programmatically, for use in a module?

I need to create an array in my custom module that contains data from multiple blocks. something like this: array( 'block_1' => array( 'subject'=>'Block Subject Here', ...
0
votes
0answers
12 views

Has the Block Cache Settings from Drupal 8 been back-ported to Drupal 7?

I noticed in Drupal 8 there are options to cache a block: I was wondering if these options exist in Drupal 7 with a module? Has the feature been back ported? or was it a contrib module to begin ...
0
votes
1answer
16 views

Configure a block view via block settings

I'm developing a website for a comprehensive but not professional user. He has the permissions to configure blocks (in order to tweak minor things like ordering or so). Now I have a block view and I ...
0
votes
0answers
12 views

Create a related content block by date and taxonomy?

I have two content types, A and B. Both of the content types are tagged with terms from Taxonomy list C. Content A and B both have a date field (start and end date). When looking at Content A I want ...
0
votes
1answer
10 views

How to hide the configure slider in MD Slider?

I've installed the MD Slider, but I would like to remove the Edit Slider and Configure Slider links in the administrator role. What function should I use to remove that?
0
votes
0answers
10 views

Form action=“/cron.php”

I got a custom form in a block, wich is available on my homepage. After e while the form action changes to action="/cron.php" instead of action="/nl". I can't figure out where this fault is comming ...
1
vote
1answer
19 views

programmatically create one bean block to the default theme

I am trying to programmatically create beans in a custom module using entity_metadata_wrapper. This is creating a bean for each installed theme. (In Drupal 7) Is there a way I can create only one ...
0
votes
1answer
24 views

Add views block to views header

I want to have the views header elements after exposed filters, so i try to get the filters in the header. For that, i expose them in a block, and try to add that block to headers, but no success. I ...
0
votes
0answers
37 views

how to build drupal search and category blockto show categories and subcategories [closed]

I tried to build category and search block to show categories and subcategories and search box. I tried from structure/taxonomy/category to categorization, and I installed custom_search module to make ...
0
votes
1answer
12 views

Block Spacing Issue

How do I insert space between 2 blocks on the left-side of the same page so they are not running together? The first block should appear and then white space and then the second block.
1
vote
2answers
9 views

Filters and relationships data from a display to another within the same view

Hi everybody, I've been freshly introduced to Drupal and I'm having my first "serious" issue with contextual filters and relationships. Here is the context : I have a "process" content type and ...
0
votes
2answers
28 views

How to arrange two blocks horizontally?

I am going to create this, But I really don't know how to do it. and I want to create one view with two blocks. what Format of view should be? (HTML list, Grid, Table, ...) I don't know theming, ...
0
votes
1answer
17 views

How to limit showing of a block just in home page?

I have a library book and in the first page or homepage of my website I want to show just 4 random books in center of my page. How to set a View block to just show in home page?
1
vote
1answer
16 views

Writing PHP code to creating menu in block show and alert

I have a menu in a block and this is my code in that block that is in sidebar second: <?php $url=$base_url.'/drupal'; echo '<ul> <li><a ...
0
votes
1answer
19 views

Rendered block doesn't match HTML source

I have entered HTML into the body of a block with the Full HTML filter (with all filtering disabled). I am using CKEditor with ACF completely disabled. The editor shows me the source rendered the ...
0
votes
1answer
44 views

How to align three blocks on the front page using CSS

I've got three blocks on my front page and I want them to be centered and aligned. "About us" block is to be aligned to the left side of the front page what I managed to achieve. The other two ...
0
votes
0answers
8 views

Menu Block Appears When Page NOT in Any Menus

Let me describe the site/block issue: The site has multiple menus. We use a menu block to generate a left-column menu that follows active trail. Attached is a screencap of the settings we're using ...
0
votes
0answers
13 views

Contextual control-link appears far from block and is not reachable

The red arrow in the picture is the mouse's pointer (it wasn't taken with print-screen so I drawd it manually). The contextual control-link appears far from block and thus when I leave the area of the ...
0
votes
0answers
20 views

Why is Drupal commenting part of my php code?

I have a block that is being executing some php code and when I enable my block on my site the first couple of php lines are commented out. <?php global $user; if ($user this turns into this ...
0
votes
0answers
8 views

Blocks page running very slowly

Our blocks admin page is loading and running very, very slowly. We have a lot of blocks loading up, but I can't understand why it takes quite so long to load and work with. It must be some slow ...
0
votes
1answer
18 views

How do I show a basic search block on the front page that integrates with search api?

I've been creating my search pages in Search API, but I want to offer a search block on the front page or other pages that can do what the core search block does. Is there a way to either integrate ...
2
votes
0answers
14 views

Programatic block with default configuration form?

We're using features on our Drupal project. We would like to specify few blocks NEED to be present in the database and their settings. Imagine block named "sidebar advertisement". That block has ...
1
vote
2answers
21 views

Entity Translation's Language Switcher (Content) is not showing

Before using Entity Translation, I used the Language switcher (User interface text) to allow the users to switch between languages on the header. On the 'Configure entity translation' page, under the ...
0
votes
0answers
16 views

How to Render Block Content from Code?

function customForms_block($op = 'list', $delta = 0, $edit = array()){ // set up an empty array which will contain the block contents $block = array(); switch ($op) { case "list": // Generate ...
0
votes
0answers
19 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
15 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
14 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
26 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
1answer
12 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
2answers
20 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
24 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
44 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
32 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
23 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
12 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
49 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
12 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
7 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
31 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
30 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
29 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
36 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
65 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, ...