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

tostinni’s picture

Hi,

I tried to use the possibility of using the path to decide whether or not to show a block.

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...

killes@www.drop.org’s picture

Status: Active » Fixed

yeps, closing.

Anonymous’s picture

Anonymous’s picture

Anonymous’s picture

Anonymous’s picture

Status: Fixed » Closed (fixed)