Using 4.5.1. ( not CVS )
I tried to use the possibility of using the path to decide whether or not to show a block.
I first tried the examples, and the examples already did not work as stated.
Tracking :
In common.inc , function url(), the string index.php gets added on non-apache systems,
as in my development environment ( Pure Windows )
In block.module, function block_list one tries the block['path'], and if filled the path gets parsed in order to kill the session part.
But : it does not take into account the extra index.php that got added.
Fix
$url = str_replace(array($base['path'], 'index.php', '?'. $session), '', request_uri());
Comments
Comment #1
tostinni commentedHi,
This issue is pretty old, but I think it can be resolved using the chx patch : Provide a 70x5 textarea in which I can a write a block's "visbility check" using Drupal's APIs.
As this has been added to CVS version, I think this bug is now resolved...
Comment #2
killes@www.drop.org commentedyeps, closing.
Comment #3
(not verified) commentedComment #4
(not verified) commentedComment #5
(not verified) commentedComment #6
(not verified) commented