Show Block On Specific Pages... Help!

tdobbs - September 16, 2008 - 05:24

Hey All.

I have a page where a user can click a team name, the links are like these:
?q=node/13/&team=1
?q=node/13/&team=2
and so on...

I also have taxonews blocks specific to each team. What I want to do is only display these specific blocks on the team pages listed above, however I cannot get this to work. The only way this works is if I use the page node/13 but this is no good as it displays for every team, I need to somehow only display for node/13/&team=1.

Is this at all possible?

Anyone? :(

tdobbs - September 16, 2008 - 17:05

Anyone?

I cant seem to find a way to get this to work.. would really appreciated some help.

php block visibility

awolfey - September 16, 2008 - 20:49

You could try some variation of this, which I have not tested. Put in the visibility section and select php visibility :

<?php
$match
= FALSE;
if (
arg(2) == '&team=1' {
   
$match = TRUE
}
return
$match;
?>

You can learn more by searching for php block visibility.

block visibility settings tutorial

erniem - September 16, 2008 - 21:05

here's a good place to start

http://drupal.org/node/64135

Use the issue queue

fgm - July 5, 2009 - 07:33

Hi, for module-related questions like this one, it is usually better to submit them as a support request in the issue queue for the module: this warns the maintainer, while forum issues won't warn him/her, and also allows for closing the problem once it is solved, and has better search features than the forums.

Hope your question was solved in the meantime.

 
 

Drupal is a registered trademark of Dries Buytaert.