Skip to main content
replaced http://drupal.stackexchange.com/ with https://drupal.stackexchange.com/
Source Link

Step 1

Create 3 blocks:

  • Block 1 containing links pointing to all items like Item-1, Item-2, Item-3, Item-4, ... etc.
  • Block 2 containing links pointing to all items Item-1, Item-2 and Item-3.
  • Block 3 containing links pointing to all items Item-4, Item-5 and Item-6.

Step 2

Enable the Rules block visibility module. Here is a quote from its project page:

The Rules block visibility module allows Rules components to be used to control block visibility. This provides Drupal administrators and developers extreme flexibility in controlling when blocks should be displayed on their websites, in addition to the default visibility options provided by Drupal.

The general idea is that if you can do it with Rules, you can use it to control block visibility, so the possibilities are limitless:

  • Need to show a block only for users registered more than a month ago?
  • Perhaps you have a block that must be shown only between 8am-5pm on weekdays?
  • What about displaying or hiding a block based on current weather conditions?

All of this can be done by using Rules block visibility.

For an illustration of how to use this module, refer to my answer to "http"https://drupal.stackexchange.com/questions/109984/how-to-stop-a-views-block-from-displaying-to-admins-such-as-user-1/193173#193173".

Step 3

As per the "if you can do it with Rules, you can use it to control block visibility" above, you've reduced your question to making Rules "check the path of the current page" (so that the block is only shown for the listed pages).

So create 3 Rules Components, each with a Rules Condition that performs a Text comparison with Parameter: Text: [site:current-page:path] and an appropriate Matching Text for the URLs like:

  • (NOT node/string-1 AND node/string-2), to show Block 1.
  • node/string-1, to show Block 2.
  • node/string-2, to show Block 3.

Step 1

Create 3 blocks:

  • Block 1 containing links pointing to all items like Item-1, Item-2, Item-3, Item-4, ... etc.
  • Block 2 containing links pointing to all items Item-1, Item-2 and Item-3.
  • Block 3 containing links pointing to all items Item-4, Item-5 and Item-6.

Step 2

Enable the Rules block visibility module. Here is a quote from its project page:

The Rules block visibility module allows Rules components to be used to control block visibility. This provides Drupal administrators and developers extreme flexibility in controlling when blocks should be displayed on their websites, in addition to the default visibility options provided by Drupal.

The general idea is that if you can do it with Rules, you can use it to control block visibility, so the possibilities are limitless:

  • Need to show a block only for users registered more than a month ago?
  • Perhaps you have a block that must be shown only between 8am-5pm on weekdays?
  • What about displaying or hiding a block based on current weather conditions?

All of this can be done by using Rules block visibility.

For an illustration of how to use this module, refer to my answer to "http://drupal.stackexchange.com/questions/109984/how-to-stop-a-views-block-from-displaying-to-admins-such-as-user-1/193173#193173".

Step 3

As per the "if you can do it with Rules, you can use it to control block visibility" above, you've reduced your question to making Rules "check the path of the current page" (so that the block is only shown for the listed pages).

So create 3 Rules Components, each with a Rules Condition that performs a Text comparison with Parameter: Text: [site:current-page:path] and an appropriate Matching Text for the URLs like:

  • (NOT node/string-1 AND node/string-2), to show Block 1.
  • node/string-1, to show Block 2.
  • node/string-2, to show Block 3.

Step 1

Create 3 blocks:

  • Block 1 containing links pointing to all items like Item-1, Item-2, Item-3, Item-4, ... etc.
  • Block 2 containing links pointing to all items Item-1, Item-2 and Item-3.
  • Block 3 containing links pointing to all items Item-4, Item-5 and Item-6.

Step 2

Enable the Rules block visibility module. Here is a quote from its project page:

The Rules block visibility module allows Rules components to be used to control block visibility. This provides Drupal administrators and developers extreme flexibility in controlling when blocks should be displayed on their websites, in addition to the default visibility options provided by Drupal.

The general idea is that if you can do it with Rules, you can use it to control block visibility, so the possibilities are limitless:

  • Need to show a block only for users registered more than a month ago?
  • Perhaps you have a block that must be shown only between 8am-5pm on weekdays?
  • What about displaying or hiding a block based on current weather conditions?

All of this can be done by using Rules block visibility.

For an illustration of how to use this module, refer to my answer to "https://drupal.stackexchange.com/questions/109984/how-to-stop-a-views-block-from-displaying-to-admins-such-as-user-1/193173#193173".

Step 3

As per the "if you can do it with Rules, you can use it to control block visibility" above, you've reduced your question to making Rules "check the path of the current page" (so that the block is only shown for the listed pages).

So create 3 Rules Components, each with a Rules Condition that performs a Text comparison with Parameter: Text: [site:current-page:path] and an appropriate Matching Text for the URLs like:

  • (NOT node/string-1 AND node/string-2), to show Block 1.
  • node/string-1, to show Block 2.
  • node/string-2, to show Block 3.
added 1 character in body
Source Link
Pierre.Vriens
  • 36k
  • 40
  • 50
  • 182

Step 1

Create 3 blocks:

  • Block 1 containing links pointing to all items like Item-1, Item-2, Item-3, Item-4, ... etc.
  • Block 2 containing links pointing to all items Item-1, Item-2 and Item-3.
  • Block 3 containing links pointing to all items Item-4, Item-5 and Item-6.

Step 2

Enable the Rules block visibility module. Here is a quote from its project page:

The Rules block visibility module allows Rules components to be used to control block visibility. This provides Drupal administrators and developers extreme flexibility in controlling when blocks should be displayed on their websites, in addition to the default visibility options provided by Drupal.

The general idea is that if you can do it with Rules, you can use it to control block visibility, so the possibilities are limitless:

  • Need to show a block only for users registered more than a month ago?
  • Perhaps you have a block that must be shown only between 8am-5pm on weekdays?
  • What about displaying or hiding a block based on current weather conditions?

All of this can be done by using Rules block visibility.

For an illustration of how to use this module, refer to my answer to "http://drupal.stackexchange.com/questions/109984/how-to-stop-a-views-block-from-displaying-to-admins-such-as-user-1/193173#193173".

Step 3

As per the "if you can do it with Rules, you can use it to control block visibility" above, you've reduced your question to making Rules "check the path of the current page" (so that the block is only shown for the listed pages).

So create 3 Rules Components, each with a Rules Condition that performs a Text comparison with Parameter: Text: [site:current-page:url]path] and an appropriate Matching Text for the URLs like:

  • (NOT node/string-1 AND node/string-2), to show Block 1.
  • node/string-1, to show Block 2.
  • node/string-2, to show Block 3.

Step 1

Create 3 blocks:

  • Block 1 containing links pointing to all items like Item-1, Item-2, Item-3, Item-4, ... etc.
  • Block 2 containing links pointing to all items Item-1, Item-2 and Item-3.
  • Block 3 containing links pointing to all items Item-4, Item-5 and Item-6.

Step 2

Enable the Rules block visibility module. Here is a quote from its project page:

The Rules block visibility module allows Rules components to be used to control block visibility. This provides Drupal administrators and developers extreme flexibility in controlling when blocks should be displayed on their websites, in addition to the default visibility options provided by Drupal.

The general idea is that if you can do it with Rules, you can use it to control block visibility, so the possibilities are limitless:

  • Need to show a block only for users registered more than a month ago?
  • Perhaps you have a block that must be shown only between 8am-5pm on weekdays?
  • What about displaying or hiding a block based on current weather conditions?

All of this can be done by using Rules block visibility.

For an illustration of how to use this module, refer to my answer to "http://drupal.stackexchange.com/questions/109984/how-to-stop-a-views-block-from-displaying-to-admins-such-as-user-1/193173#193173".

Step 3

As per the "if you can do it with Rules, you can use it to control block visibility" above, you've reduced your question to making Rules "check the path of the current page" (so that the block is only shown for the listed pages).

So create 3 Rules Components, each with a Rules Condition that performs a Text comparison with Parameter: Text: [site:current-page:url] and an appropriate Matching Text for the URLs like:

  • (NOT node/string-1 AND node/string-2), to show Block 1.
  • node/string-1, to show Block 2.
  • node/string-2, to show Block 3.

Step 1

Create 3 blocks:

  • Block 1 containing links pointing to all items like Item-1, Item-2, Item-3, Item-4, ... etc.
  • Block 2 containing links pointing to all items Item-1, Item-2 and Item-3.
  • Block 3 containing links pointing to all items Item-4, Item-5 and Item-6.

Step 2

Enable the Rules block visibility module. Here is a quote from its project page:

The Rules block visibility module allows Rules components to be used to control block visibility. This provides Drupal administrators and developers extreme flexibility in controlling when blocks should be displayed on their websites, in addition to the default visibility options provided by Drupal.

The general idea is that if you can do it with Rules, you can use it to control block visibility, so the possibilities are limitless:

  • Need to show a block only for users registered more than a month ago?
  • Perhaps you have a block that must be shown only between 8am-5pm on weekdays?
  • What about displaying or hiding a block based on current weather conditions?

All of this can be done by using Rules block visibility.

For an illustration of how to use this module, refer to my answer to "http://drupal.stackexchange.com/questions/109984/how-to-stop-a-views-block-from-displaying-to-admins-such-as-user-1/193173#193173".

Step 3

As per the "if you can do it with Rules, you can use it to control block visibility" above, you've reduced your question to making Rules "check the path of the current page" (so that the block is only shown for the listed pages).

So create 3 Rules Components, each with a Rules Condition that performs a Text comparison with Parameter: Text: [site:current-page:path] and an appropriate Matching Text for the URLs like:

  • (NOT node/string-1 AND node/string-2), to show Block 1.
  • node/string-1, to show Block 2.
  • node/string-2, to show Block 3.
Source Link
Pierre.Vriens
  • 36k
  • 40
  • 50
  • 182

Step 1

Create 3 blocks:

  • Block 1 containing links pointing to all items like Item-1, Item-2, Item-3, Item-4, ... etc.
  • Block 2 containing links pointing to all items Item-1, Item-2 and Item-3.
  • Block 3 containing links pointing to all items Item-4, Item-5 and Item-6.

Step 2

Enable the Rules block visibility module. Here is a quote from its project page:

The Rules block visibility module allows Rules components to be used to control block visibility. This provides Drupal administrators and developers extreme flexibility in controlling when blocks should be displayed on their websites, in addition to the default visibility options provided by Drupal.

The general idea is that if you can do it with Rules, you can use it to control block visibility, so the possibilities are limitless:

  • Need to show a block only for users registered more than a month ago?
  • Perhaps you have a block that must be shown only between 8am-5pm on weekdays?
  • What about displaying or hiding a block based on current weather conditions?

All of this can be done by using Rules block visibility.

For an illustration of how to use this module, refer to my answer to "http://drupal.stackexchange.com/questions/109984/how-to-stop-a-views-block-from-displaying-to-admins-such-as-user-1/193173#193173".

Step 3

As per the "if you can do it with Rules, you can use it to control block visibility" above, you've reduced your question to making Rules "check the path of the current page" (so that the block is only shown for the listed pages).

So create 3 Rules Components, each with a Rules Condition that performs a Text comparison with Parameter: Text: [site:current-page:url] and an appropriate Matching Text for the URLs like:

  • (NOT node/string-1 AND node/string-2), to show Block 1.
  • node/string-1, to show Block 2.
  • node/string-2, to show Block 3.