Questions tagged [drupal-blocks]

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

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

See also

162 questions
0
votes
2 answers

Block visibility settings

I'm new at Drupal. my url is like www.blabla.com/drupal/blog/ I have some blocks that must be disabled for blog part. So I go to related block configuration and make it as below: alt text…
designer-trying-coding
  • 5,994
  • 17
  • 70
  • 99
0
votes
1 answer

Pass form data from block to a page view in Drupal

I am using the location module and views module for a postcode search, which works fine in a page display using views. However I want the user to be able to enter their postcode into a block on the homepage and clicking submit my module sends them…
0
votes
1 answer

Block Visibility Settings not working in Drupal

Now for a specific block, I wanted it to be visible only on the front page. So I edited the block visibility settings for specific pages and made it . But the block is showing up in all the page. I have also tried other options like roles. In…
Aniruddha
  • 746
  • 1
  • 5
  • 12
0
votes
1 answer

Different Views inside a Custom Block in Drupal 7

I have defined a Custom Block in my module and I want display different views in that block when user selects different sections using navigation menu. With the use of hook_block_view() i can set the content that needs to be rendered for that…
PIKP
  • 753
  • 2
  • 15
  • 24
0
votes
1 answer

Different Layouts for Different Blocks in a Custom Module Drupal 7

I have created Custom Module which that works with a Custom Content type. In my module, withe use of a multi-step form I am grabbing details form the user and in final form submit, creating a node pragmatically. I want to define two blocks in my…
PIKP
  • 753
  • 2
  • 15
  • 24
0
votes
1 answer

JavaScript not Initializing in Drupal Block

I have the following fiddle: http://jsfiddle.net/VYbLX/125/ The purpose is to update a thumbnail with the appropriate selection in the dropdown menu. I'm attempting to implement this piece of code inside of a Drupal block that will be dropped into…
Kazoou
  • 9
  • 3
0
votes
1 answer

How to customise HTML structure in Drupal view block

I am currently developing a website in Drupal. I have a load of news articles which are of content type 'news'. I want to create a widget to show at the bottom of several pages listing the latest articles. I have managed to achieve thus far by…
diggersworld
  • 12,770
  • 24
  • 84
  • 119
0
votes
1 answer

Drupal 7: How to assign each node to different block (or region)?

How to assign each node to different block (or region)? When i add new content and select promote to front page, its every time displayed under "Main page content" block. I have region "content" and "top-content". "top-content" region has block…
Gregor
  • 385
  • 3
  • 15
0
votes
1 answer

Just HOW do I remove this pesky block

I've tried deleting blocks, disabling views - the lot! I just can't get this little block to go away! A block called "Related Forum" is showing up on our knowledge base pages an example is found - here. I'd like the whole Related Forum block removed…
Sam
  • 111
  • 10
0
votes
1 answer

Drupal Rendering a block by click a value in another block

I have two content types Book and chapter . Every chapter is linked to a single book content type by using reference module. i have two blocks which list books in one block and the second one is used to show the chapters in that book. Here are my…
Monish
  • 121
  • 1
  • 4
0
votes
2 answers

Drupal Block View Execute Javascript function

This would be my first custom module I am creating, and having a few grey hair's for something as simple as rendering a js function into a drupal block module. so the script works just fine in php mode by pasting the following code into a drupal…
BeNoZo
  • 35
  • 7
0
votes
1 answer

drupal 7 block restriction based on user term reference

Users are set up on my D7 site with various term references as profile fields. I need to be able to show hide certain blocks based on these term references, is this possible? I cant see a way to link a block with a term reference.
callum.bennett
  • 678
  • 3
  • 12
  • 28
0
votes
3 answers

How i can modify $content data in Drupal 7?

how i can modify $content data in Drupal 7? I want to change / modify the block content of the module: blog I tryed in my template.php file: function blog_block_view($delta = '') { return "Test, yes i am here"; } But nothing happens...
freez
  • 81
  • 1
  • 6
0
votes
2 answers

How to set a block for dynamic node in DRUPAL 7

I am new to Drupal. I have created a block that I want to show on some specific pages. Like if the url is "/node/2278" then I want to show the block for all the page under this "/node/2278". This may be /node/2278/1 or /node/2278/any-number.
rafat
  • 819
  • 2
  • 10
  • 25
0
votes
3 answers

Drupal: Content in blocks from node_reference fields?

After only a few weeks of working with Drupal I've come up with a recurring problem, which I don't really have an optimal solution to, so I'm hoping that someone here might be able to give some best practice pointers. What I have is a region inside…
Marco
  • 2,329
  • 1
  • 21
  • 25