Skip to main content
Tweeted twitter.com/StackDrupal/status/838041034395365376
added 2 characters in body
Source Link
Pierre.Vriens
  • 36k
  • 40
  • 50
  • 182

My Drupal 7 module creates a block, and then in admin I can make it available for the Article content type only. I would also like it to be available to the result page for a Product Search. This page is not of a normal content type and comes to life in hook_menu().

The path for the results will be avantlink-search-results/search term and I would like it showsto show the block with the search form again. I would rather not use the PHP code option in the block visibility options so as to keep it simple for users of the module.

The code is viewable on AvantLinker.

My Drupal 7 module creates a block, and then in admin I can make it available for the Article content type only. I would also like it to be available to the result page for a Product Search. This page is not of a normal content type and comes to life in hook_menu().

The path for the results will be avantlink-search-results/search term and I would like it shows the block with the search form again. I would rather not use the PHP code option in the block visibility options so as to keep it simple for users of the module.

The code is viewable on AvantLinker.

My Drupal 7 module creates a block, and then in admin I can make it available for the Article content type only. I would also like it to be available to the result page for a Product Search. This page is not of a normal content type and comes to life in hook_menu().

The path for the results will be avantlink-search-results/search term and I would like it to show the block with the search form again. I would rather not use the PHP code option in the block visibility options so as to keep it simple for users of the module.

The code is viewable on AvantLinker.

Improve title and formatting
Source Link
Pierre.Vriens
  • 36k
  • 40
  • 50
  • 182

Block How to display a block for pages that don't show nodes?

My Drupal 7 module creates a block, and then in admin I can make it available for the Article content type only. I would also like it to be available to the result page for a Product Search. This page is not of a normal content type and comes to life in hook_menu().

The path for the results will be avantlink-search-results/search termavantlink-search-results/search term and I would like it shows the block with the search form again. I would rather not use the PHP code option in the block visibility options so as to keep it simple for users of the module.

The code is viewable on AvantLinker.

Block display for pages that don't show nodes

My Drupal 7 module creates a block, and then in admin I can make it available for the Article content type only. I would also like it to be available to the result page for a Product Search. This page is not of a normal content type and comes to life in hook_menu().

The path for the results will be avantlink-search-results/search term and I would like it shows the block with the search form again. I would rather not use the PHP code option in the block visibility options so as to keep it simple for users of the module.

The code is viewable on AvantLinker.

How to display a block for pages that don't show nodes?

My Drupal 7 module creates a block, and then in admin I can make it available for the Article content type only. I would also like it to be available to the result page for a Product Search. This page is not of a normal content type and comes to life in hook_menu().

The path for the results will be avantlink-search-results/search term and I would like it shows the block with the search form again. I would rather not use the PHP code option in the block visibility options so as to keep it simple for users of the module.

The code is viewable on AvantLinker.

edited tags
Link
avpaderno
  • 97.9k
  • 15
  • 164
  • 284
deleted 13 characters in body; edited tags; edited title
Source Link
avpaderno
  • 97.9k
  • 15
  • 164
  • 284
Loading
edited tags
Link
nonsenz
  • 2k
  • 1
  • 17
  • 17
Loading
Source Link
bumpaw
  • 738
  • 1
  • 6
  • 7
Loading