Questions related to block configuration page where checkboxes and configuration page let you customize the visibility of the block.

learn more… | top users | synonyms

0
votes
0answers
6 views

Edit pages defaulting to wrong visibility settings, roles

When I access the edit form for a block, the visibility settings displayed are incorrect. The "Show block on specific pages" radio button defaults to "All pages except those listed", even when it had ...
-2
votes
0answers
17 views

drupal admin displaying blank screen [duplicate]

I set up a drupal site on a mac and it all works as expected. When i cloned the git repository to my kubuntu it seemed to be ok until I tried to access the admin area. It just displays a blank screen ...
0
votes
2answers
39 views

Show block for specific content type programmatically

How can I show a block on a specific content type programmatically? I want in my image the 'basic page' selected. I used the xxx_block_info() function, should it set in here?
0
votes
1answer
16 views

Customizing where to show block

Let's say I have nodes with the following paths: /chapters/university-of-florida/classrooms/class1 /chapters/university-of-chicago/classrooms/class2 /chapters/ucla/classrooms/cla I'd like to ...
0
votes
1answer
36 views

How to add page restrictions for blocks in frontpage?

I have several blocks in my homepage : 2 statics and 1 with a pager. I want to hide a static block when paging my homepage (after page "0"). I saw something similar in How can I show a block in a ...
0
votes
1answer
35 views

How to add Visibility Settings option for node/content type

I have created a custom content type for campaign in my module using: hook_node_info() and add fields using: hook_field_group_info(). This campaign content type will be showing to user site wide ...
0
votes
1answer
15 views

Allow block display on child nodes but not grandchildren

In a block configuration, I would like to show the block on /programs/* but not on programs/* /* I have seen a number of questions similar to mine. Block display using wildcard, non-greedy for ...
0
votes
1answer
27 views

custom block's BLOCK_VISIBILITY_LISTED not working on profile installation hook_install()?

Why this cannot work in my profile installation? array( 'module' => 'views', 'delta' => 'views-block', 'theme' => $default_theme, 'status' => 1, 'weight' => 0, 'region' ...
0
votes
2answers
64 views

Quicktab visibility by programing

I have a Quicktab with 2 tabs. The block is placed in user profile. Now I want to show one of the blocks only when the user visits his own profile and hide it when he is visiting other profiles. How ...
0
votes
0answers
26 views

Restrict block to specific page broken after last site update

I just updated my site to Drupal 7.26 release. As of the update the Visibility settings are ineffective. I have a simple block containing a paragraph that should only appear on the front page. The ...
0
votes
1answer
80 views

How to hide language switcher block if node has no translation?

Having a bilingual site here. Some nodes are translated and language switcher works fine. But the switcher block also shows up on nodes which aren't translated. Then the untranslated language link has ...
0
votes
0answers
18 views

<p> Tag and Image Problem in a Block

I've been using Drupal on my site for a year or so but after upgrading to Drupal 7, it starts showing some errors. I just can't get rid of < p > tag from a block which is featured on the homepage. ...
0
votes
2answers
59 views

How to control from a module the block visibility of a block implemented by another module?

The default options in the administrative page for block visibility (e.g. admin/build/block/configure/block/3) are not enough for my needs. For security reasons, I do not wish to use the PHP option ...
0
votes
2answers
34 views

Block display using wildcard, non-greedy

I have a block that I have configured to display "Only on the listed pages" commerce_store/store/* The problem is, it displays not only on the view link, which I want it to, but on the edit and ...
2
votes
1answer
150 views

Show block only in user own page and for administrator role users

What I'm trying to achieve: User can see block only on his own "user/[uid]/my-page" - he cant see that block on other users my-page. Users who belong to administrator role can see user block on user ...
1
vote
1answer
265 views

Can't set PHP block visibility programatically

Heres my code: $blocks['membership_package_information'] = array( 'info' => "Membership Package Information", 'visibility' => BLOCK_VISIBILITY_PHP, 'pages' => ...
4
votes
3answers
68 views

How can users block other users

In regards 7.x. Say a user that has a role of (registered user) wants to block another user with the same role that is harassing them and they don't want to see any more posts or comments from the ...
2
votes
3answers
507 views

How to hide an exposed filter block if the view results are empty?

I have an exposed filter block on the sidebar on my page. I want to hide the exposed filter block if the result of the view is empty. What is the best was to do it ? Right now i am having some Jquery ...
1
vote
1answer
52 views

Make block visible to specific IP (in D6)

On a D6 site I want a block that it visible only to visitors from a specific IP. If I choose Page specific visiblity settings with the PHP code <?php if(strcmp(ip_address(),'1.2.3.4')==0) { ...
0
votes
1answer
161 views

Displaying block only when user visits his own profile page

I want to display the block only when the current user visits own page. So in block visibility I use the following PHP: global $user; if ($user->uid == arg(1)) {; return TRUE; } else {; return ...
0
votes
0answers
51 views

Display message in block on cart page if specific product is in cart?

I have a Drupal 6 / Ubercart 2 website and I need to display a block on the cart page if a specific product is in the cart. It can also display if other products are in the cart along with the ...
0
votes
2answers
191 views

how to have block show up on specific pages AND specific content types

I want to be able to have a particular menu block show up on specific pages, as well as on specific content type pages. My content type pages don't start with /node, so I can't simply say pagename ...
1
vote
1answer
125 views

How do you use BLOCK_VISIBILITY_PHP, in hook_block_info, to hide a block?

I am user #1; I do have the PHP filter module enabled, but still my block is displaying, when I'd like it to be hidden. Here's my implementation of hook_block_info: /** * Implements ...
0
votes
2answers
126 views

Visibility rules if field is filled in

We made a visibility rule to display a field when a second field has been filled, and display another field when the second field is empty. It works well, but since we updated Ctools and some Drupal ...
0
votes
1answer
110 views

Drupal Block not showing up in right region

sidebar_first I am trying to have my custom block show up in region "sidebar_first" (region exists in the current theme). The block is showing up at the Block admin page but does not automatically go ...
0
votes
2answers
153 views

Display block based on main content type with view

I have created a view in a block, to display some related information to the current content type being displayed into the block. More precisely, I want to display the block only for book pages. What ...
0
votes
3answers
470 views

How to add page restrictions for blocks in drupal?

I'm using the drupal administrator menu for the settings there i have a page called /desert/234234 the block should appear only when the url is /desert/(desert_id) how can i restrict that
0
votes
1answer
85 views

How to display specific blocks for specific roles alone w.r.t domains and subdomains

I want to display specific blocks for specific roles alone with respect to domains and sub-domains. I know i can give permission for roles in the block to be displayed.How do i differentiate anonymous ...
0
votes
0answers
101 views

Setting visibility of menu / block

I am trying to set the visibility OF A a menu block, so that only certain roles can see it. This seems like a simple task, but I am having trouble getting it to work. I have using Drupal 7 btw. To ...
0
votes
1answer
66 views

How to show language switcher only on home page

In my multilanguage site i am using Language switcher (User interface text) and I have it located in block called "Help". This block is shown in the middle of the site, where I want it. But I want it ...
0
votes
1answer
94 views

How does a user subscribe to a group with GCC?

I have the Groups, Communities and Co (GCC) module installed [7.x-1.0-beta2] but I cannot find a way for an authenticated user to subscribe themselves to a group. I have moved the 'GCC Subscription ...
0
votes
1answer
24 views

Identifying drupal installation on windows

I don't want a google custom search to be shown on my development system which is on windows but it should be visible when on production system which is on Linux. How do I check it? This isn't ...
2
votes
2answers
411 views

switch views or hide block based on content type

I have a block view that gets its contents based on a contextual filter. I only want to use this filter if it's a certain node type being displayed ie. the block would use the contextual filter on ...
0
votes
2answers
59 views

Display a block when a view doesn't return any result

On node/48, the page is composed from a text and a view. I would like to display a block when the view does not return any result. How can I achieve this?
0
votes
1answer
103 views

block visibility based on user

I would like to remove certain blocks, so that admin can not see them. In block visibility settings - in pages tab, I try to put followng php code but with no effect. (In user tab there is no php ...
2
votes
1answer
131 views

Context reaction : Exclude specific block?

I've got a website with 3 large contexts : - internet - intranet - shop These 3 contexts are "tight" (sorry about my english, I think this is the word). My Block UI (admin/build/block) provides to ...
0
votes
0answers
52 views

How to make block visibility work when page has parameters

I have a block which should be displayed on a couple of page. I configured it like this : Only the listed pages event event* event/* news news* news/* It works when my url ...
0
votes
0answers
205 views

Google Custom Search Block Not Displaying In Drupal 6 But OK In D7

probably a total noob issue. I got started with Drupal on D7 and this is a D6 site. I want to implement this Google Custom Search on a D6 site: http://drupal.org/node/1887016 We're signed up for GCS ...
3
votes
3answers
466 views

show block on pages with a question mark ( 'searchquery' )?

For example end up with url's like example.com/viewname?f=[0]field_name=%3A21 I want to make a block visible on pages like the above but not when only the view is displayed. Only he view will ...
0
votes
1answer
21 views

What might be stopping this Contextualised Filter work in Block (please)?

I am stuck making a contextualised filter in Block View (and I guess if I knew my question, I would also know my answer). The view comprises A set of images which I can see in the View before I set ...
0
votes
1answer
79 views

How to Display a Block on a Page with a Variable URL

I want to show a block only on these user pages: .../user/USER_ID/recurring-fees. What will be the code to be placed in the PHP box to make this work?
0
votes
1answer
117 views

Tokens to change a block's visibility

I am trying to make a block visible only to pages whose URL matches user/[current-user:uid]/downloads, but I don't get anywhere. Do you have any idea on how to achieve this?
5
votes
1answer
81 views

Show block for /member/* but not member/*/likes

I want to show a block on a member's profile page (member/) but not on member//likes. It doesn't seem I can do this without php in the block setting, does it?
0
votes
1answer
26 views

What is the slug of mainpage?

I am editing blocks in /admin/structure/block - when I click "Configure" for a block, I see: Show block on specific pages All pages except those listed Only the listed pages Pages on which this PHP ...
0
votes
2answers
818 views

Display block on certain page

I want to display a block on the user/* page. I checked "only the listed pages" and entered "user/" but the block also appears on "user//relationships" for example. How can I keep the block on just ...
0
votes
2answers
206 views

Drupal 7 Display a block on custom tab

I would like to display a view block on a custom tab I created as follows, but the tab is always empty. The block has the option to be shown only on specified path node/%node/calendario-corsi. Is it ...
3
votes
1answer
105 views

Content block doesn't show when query is added to the URL

I have a Drupal 7 page where some of my content blocks don't show up, if there is a query added to the URL. Say my block is main_content, and it is shown all all pages except the listed ones, where ...
3
votes
1answer
557 views

Role specific Dashboard block Drupal 7

I created a set of Views based blocks which will be displayed in the Dashboard's Main Content Region.But those all of them are not for the site admins. Some of them are for other roles. So I have ...
0
votes
1answer
165 views

Block is not showing up in a custom taxonomy page template

I am using Drupal 7 I have a content type courses. I have a page folder in template folder, with courses.tpl.php file. When i go to courses page it is showing contents from courses.tpl.php. Issues is ...
1
vote
2answers
349 views

How to make a block visible on a particular page and as well as on taxonomy term page?

here is my situation, I have a Taxonomy menu block built using taxonomy_menu and taxonomy_menu_trails module. And I have used block_term module to display the menu on nodes with given term(s). Now, ...