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
1
vote
3 answers

Creating content in a block in Drupal 6

By default for creating content a new page is opened. I want to do this inside a block. A block where there will be some fields like title body taxonomy terms and a create content button. How can I do this?
w2lame
  • 2,774
  • 6
  • 35
  • 48
1
vote
3 answers

Creating "ON/OFF News Links" functionality for a block created with View Module

I'm a drupal newbie who needs some advice... I have a news list block at homepage, created with View Module. It is listing all added news' title and link. Everything is cool so far. Now I need to add an ON/OFF option at admin side for homepage news…
designer-trying-coding
  • 5,994
  • 17
  • 70
  • 99
1
vote
1 answer

Drupal Ctools Form Wizard in a Block

I created a custom module that has a Ctools multi step form. It's basically a copy of http://www.nicklewis.org/using-chaos-tools-form-wizard-build-multistep-forms-drupal-6. The form works. I can see it if I got to the url i made for it. For the life…
Iamjon
  • 11
  • 4
1
vote
1 answer

Drupal 7: how to filter view content (with entity reference field) based on current page content

in my drupal 7 I have 2 content-types like these: ContentA ContentB (with a field Entity Reference to ContentA) In the front-end detail page of ContentA, I would love to show a block/view with a list of ContentB whose Entity Reference field is set…
1
vote
4 answers

Only show a view on a certain content type in Drupal

i have build an "About the Author" views block in Drupal. This is linked at the user_id of the creater of the current node, which works great. However, i now would like to know how to limit the view to certain content types. I do not want it to…
Paul
  • 858
  • 2
  • 10
  • 27
1
vote
1 answer

Form Blocks not working for anonymous users

I'm using Drupal 7 with Varnish. Recently I noticed that the login and sign up blocks are not working for anonymous users. When a user tries to login or create an account via the blocks the user is just redirected to the same page however the new…
anthony
  • 23
  • 8
1
vote
1 answer

Views, blocks and template?

I have a block view called: "MYVIEW" And I have a region on my template called: "right". What must I call the template file to edit this? The following does not work. block-MYVIEW.tpl.php block-right--MYVIEW.tpl.php
rockstardev
  • 13,479
  • 39
  • 164
  • 296
1
vote
2 answers

Drupal: Access $profile from a block

I'm trying to get the avatar (profile picture) located in the $profile array to appear in a BLOCK. The variable $profile is not accessible from blocks. It's scope is only in that actual user-profile.tpl.php file. So... does anybody know how I can…
rockstardev
  • 13,479
  • 39
  • 164
  • 296
1
vote
1 answer

Change block content based on changes in another block

I am experienced Java/C++ programmer, but totally new to Drupal/PHP. Short question: How do I refresh all the blocks in my page, based on the input to a particular block? Exact Scenario: I am looking to create a website with display and behaviour…
vivek
  • 11
  • 3
1
vote
1 answer

Custom icons block in drupal

How do I create a custom block in Drupal 7 to show custom clickable icons?
Avdept
  • 2,261
  • 2
  • 26
  • 48
1
vote
0 answers

How can I force a block not to be cached for unauthenticated users?

I have a php block which I would like to be refreshed on every page load/reload. Although I have disabled all caching under Site Configuration -> Performance the block is still being cached. Although I've googled a great deal on this I haven't found…
Tom
  • 177
  • 1
  • 2
  • 9
1
vote
4 answers

Block are not displayed to anonymous users in Drupal

Al my blocks in drupal are display only for the admin & not for the anonymous users who are not logged in. Where i went wrong? I never faced this issue. did someone have solutions for this?
Parthi04
  • 1,121
  • 4
  • 21
  • 39
0
votes
1 answer

Refresh a Block content when the page refreshes using javascript

I Just wanna change the content of my block when the page refreshes(Just like the concept in advertisement block changes on page refresh).I'm doing a drupal7 site.That block is a dynamic one (views:block) it has four fields of three text and one…
Ranjani
  • 153
  • 1
  • 3
  • 12
0
votes
1 answer

drupal block listing articles with custom scrollbar

I want to create a block listing some articles and I want to add a custom scrollbar to that box. So it shows 3 article teasers and then it scrolls but scrollbar is custom design.How can I do that?Thank you in advance.
Stathis
  • 111
  • 2
  • 8
0
votes
1 answer

Dynamic block in Drupal

I have a couple of node types, policy, quote, customer etc and each of those has a set of actions called that are printed in a menu of links which are coded into the template file. I want to put this menu into a block so that I can reposition it, so…
Michael Mallett
  • 734
  • 1
  • 12
  • 28