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
2answers
23 views

How to get “Show block on specific pages” working?

I would like to show a certain block only on one specific page. I want to use the Show block on specific pages feature for it. I have tried to set the url of my page like ...
0
votes
4answers
51 views

Display block on first login only

I want to display a block on first login only and never after that, is there any module or something possible for that? I have a block which is visible always on the first page, but what i need is to ...
0
votes
1answer
12 views

Block not displayed on translated views page

I'm having an issue where my menu block doesn't appear on certain pages in a different language. I have my main navigation shown in a menu block and it appears on my news view at ...
0
votes
1answer
23 views

Hiding a drupal block on particular page

I am trying to hide a Drupal block on a View page. The View url is http://localhost/alphabetical And name of the block is family tree. So I went to Structure ->Block ->Configure(for Family ...
1
vote
1answer
32 views

TB Mega Menus: Image block doesn't show anything

I'm building my first page with Drupal, creating a subthem of Omega 4, and for the menus I chose to use TB Mega Menu. The problem is that I want one of the columns of the drop down to contain an ...
0
votes
3answers
49 views

Restrict block visibilty based on menu

I want to display a block only on a particular menu-link. For example I have a main menu link name: about us and the link: /about If I restrict the block based on pages and give link as /about , In ...
0
votes
0answers
9 views

Cannot display output view block under or after exposed filters block

I created few exposed filters in block. However when I hit 'apply', I get its output view displayed on top of the exposed filters in a separate block. Is their any way or code through which I can ...
0
votes
1answer
33 views

how to insert the See All link in a drupal view block

i created a News block that display only 3 lasted news, and i want create a button "See All News" how i can do it ?
1
vote
1answer
51 views

Drupal Block version controling before being published

Does Drupal supports blocks versioning, are there any modules can be used for controlling blocks revisions and publish selected version. For example: a newly created blocks shall be published after ...
0
votes
0answers
30 views

Display Drupal block on node pages with taxonomy term set on node

I added a taxonomy term field to the "Basic page" content type. I'd like to display a specific Drupal block on all pages where these "Basic page" nodes are displayed in "full" view mode (not as ...
0
votes
1answer
58 views

Display blocks on taxonomy and content type pages

I have a taxonomy menu block. I need to show this block on some taxonomy term pages for a particular vocabulary and on some content type node pages in second sidebar region (bartik theme). How can ...
0
votes
0answers
13 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
2answers
41 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!
1
vote
1answer
52 views

Hide main page content block

I've configured the Main page content block to show on all pages except those listed. The paths I have listed are: commodity-selection commodity-selection/* value-chain-studies value-chain-studies/* ...
1
vote
1answer
57 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
54 views

Get config variable value in hook_block_list_alter

works I have added a new field to block configuration settings by using the function hook_form_FORM_ID_alter. I used submit handler to save the variable $form['#submit'][] = mymodule_submit (as ...
0
votes
2answers
361 views

Print a block inside a Views header or Views footer using PHP input

There seems to be multiple ways of printing a drupal 7 block via php input filter. What is the most efficient way of printing a drupal block in Views header or Views footer attachment of a global text ...
0
votes
1answer
42 views

Drupal Block Render

I'm looking for a fix to my block that doesn't render on the comment page. Here is the code. $path = current_path(); drupal_set_message('path: '.$path); if (strpos($path, 'comment/reply') ...
2
votes
1answer
46 views

Blocks display in the wrong place and can't be turned off

I'm experiencing problems: Some of my blocks are appearing in two blocks at the same time. Some blocks appear when disabled, even if I disable the block is still appears in one of the locations. It's ...
0
votes
0answers
12 views

Solr's “more like this” block doesn't appear on every content type

I've successfully installed solr on D7 which I'm using several content types. More like this block shows on one of the content types but not with rest. With a surprising exception of last two nodes on ...
1
vote
1answer
217 views

DIsplay Block content after certain time delay

I need to show the block content to users after certain delay of page load . Initially the user will see only the article , but after certain time the block content will be revealed . Can it be done ? ...
0
votes
1answer
42 views

Author pane block

In my project I am working on user profile. to display user info I am using Author Pane module, which provide a block and showing information. But this block not display on other pages of site. How to ...
0
votes
1answer
90 views

How to programatically add block to Drupal 7 page tpl AND respect visibility rules?

I want to add a block programatically to a page.tpl.php file in my Drupal 7 theme BUT I want it to respect the block's visibility rules. I'm open to defining new visibility rules in PHP too but it ...
0
votes
0answers
42 views

How to display blocks in custom front page?

I used custom front page name page--front.tpl.php. it's full of html code. Now i want to add blocks in this custom page, but i don't know how to add blocks in this page.
0
votes
2answers
51 views

Display Blocks depending on the logged in user? [closed]

How am I going to display blocks depending on the logged in user? Let's say I have a Block1 and Block2. Whenever user1 is logged in, he should only see block 1. Same goes for user2, seing only ...
0
votes
2answers
166 views

Controlling Drupal blocks in Domain access

I am using Drupal 7 version for my website. I installed Domain access module for maintaining the sub domains. My situation is that the slideshow block (using Views module) should be displayed on the ...
0
votes
1answer
168 views

Add Body Class Based On Visibilty Of A Block?

Is there a way to add a css class to the body tag based on whether or not a particular block is visible on a page (node)? We have certain blocks that are visible on specific pages. It would be nice ...
1
vote
2answers
501 views

Showing block in specific urls and content types

I'm using this code to show block in specific urls and content types. <?php $match = TRUE; // block is visible on the content types entered here $types = array('product_display' => 1, ...
1
vote
1answer
50 views

Showing a block in specefic content type and urls

I have a block that i want to show it in a specefic content type and some urls . i tried to add php like : <?php $match = FALSE; // block is visible on the content types entered here ...
0
votes
1answer
207 views

Fix a constant width for first sidebar and second sidebar

I'm working on Zero point Theme in drupal 7. In my home page I've three blocks - first sidebar, content and second sidebar formatted as three columns. Here the width of first sidebar and second ...
0
votes
1answer
52 views

How can I find specific block name in structure->blocks in drupal-7?

I can see specific block in the home page. I need to show this block in specific roles. How I can find this block in the list of blocks in structure->blocks?
0
votes
2answers
189 views

Show Block only if it's a front page and GET variable is set

I am setting up a block in Drupal 7 to "show block on specific pages" through PHP. What I want is that if it's a Front page and there is a GET (listed) variable, only then it shows the block ...
0
votes
0answers
83 views

visibility field requiered when updating a node

I have trouble when I want to edit a node with another user in D7.24 , it can't be done and I have the error message visibility field requiered With the admin account (first created), it works! ...
0
votes
2answers
524 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?
1
vote
1answer
46 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
120 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 ...
2
votes
1answer
331 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
29 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
184 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
151 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
1answer
574 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
2answers
194 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
153 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
384 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
1k 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
116 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
4answers
2k 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
99 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
512 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
2answers
2k 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 ...