By bikey77 on
Hello all, i'm new to the drupal community and i'm building my first drupal-based website and i have a few questions for you.
The website i'm building is about exhibitions and conferences and i've created some blocks in the left region in which i display banners (using the Ads module) for the exhibitors. Each exhibition has, of course, different exhibitors so what i need is to display only the blocks for each ad group depending on the page i'm viewing based on the taxonomy terms i've set for each page but i haven't been able to make it work.
Any suggestions or other approaches are welcome!
Comments
Hi I think you can user php
Hi
I think you can user php code for block visibility settings. Let me know if you have still some problems.
Devender
Manual and tiresome way would
Manual and tiresome way would be to assign blocks (of different groups) to different set of pages in the block configuration. If you have a ad group called "Web 2.0 expo" and it should appear on certain pages then u should list those pages in block configuration in the section where it says show this block on following pages. Otherwise you can take help of views argument and expose your views as block. I'll get back if I think of something slick.
--------------------------------------------------------
Dipen Chaudhary
www.qed42.com ( Drupal development services specialize in social networks and other user generated content platforms )
www.dipenchaudhary.com
Here are a couple of snippets
Here are a couple of snippets of PHP code that should help. Paste one of these into block visibility settings as devenderdagar said, and see what happens. See here for PHP snippet usage instructions if you need them: http://drupal.org/node/337959
These are slightly modified versions of code I found on Drupal.org somewhere. If you search you should be able to find the original pages that I got these from - there will be more there.
That's EXACTLY what i was
That's EXACTLY what i was looking for, it works like a charm.
Many thanks mate!
Same issue here. The Context
Same issue here. The Context Module solved most of the issues without PHP. Excellent module.
http://drupal.org/project/context