I have the "most recent comments", "active forums blocks", but I don't want those visible when someone is in the forums. I configured those blocks with 'forum*' as the exclusion list on the admin/block page.

Now this works great for the forum index, but doesn't work for posts because those have names like node/165. It seems to me there is no way to exclude forum posts from blocks then, as there is nothing unique about their URLs.

On a separate note, the number of "recent comments" displayed seems not to be configurable. Am I missing something? That would be a pretty glaring ommission.

Any thoughts?

Comments

alexn’s picture

This is such a basic function, I'm surprised no one has answered yet. As far as I can tell, the exclusion/inclusion list for blocks are completely useless, since almost everything uses generic urls that only have a node number.

Leeteq’s picture

- is there some code examples "out here" that shows how to affect the block visibility from within the PHP code in the block itself? Then one can check for the Forum post content type and disable the block on basis of that, I guess.

PS. In Drupal 4.7 there is a new block visibility option: "Show if the following PHP code returns TRUE"

.
--
( Evaluating the long-term route for Drupal 7.x via BackdropCMS at https://www.CMX.zone )

ChristineBaker’s picture

I found many questions just like this one with NO response or no meaningful response.

It's now just about 2009 and I have to hire a php / Drupal programmer to get the right sidebar out of forum posts in Drupal 6.8?