By jeaniedarnall on
I am trying to build a portal page that does not include the block for the left hand side navigation. I've found the PHP code that restricts visibility by login but I'm looking for something that doesn't show a block because it's a specific page. Is there a way to do that without a PHP snippet or is there one already available that I haven't found yet? Thanks for your time and expertise...
Comments
its simple check the Show
its simple check the Show block on specific pages, select Show on only the listed pages. add the paths to the pages were you want the block to be visible on
What is the format for the page to show in Show on only?
I have tried to get a block to show only on a given page. Doesn't seem to work. I am using Blocks in Drupal 6 I have tried "Show on only the listed pages". It says "Enter one page per line as Drupal paths". I tried it with node/1 or /node/1 or a full url and it doesn't seem to work. What am I missing here? Clif
I don't think you're missing
I don't think you're missing anything, I think you are experiencing some sort of bug. The paths are entered:
node/13
user/53
node/163
and it should work. I use this in 5.7 and it behaves as intended. Maybe you want to report as a big for the modules involved.
Block page visability Problem Solved...
Here is the rub, I am using FCKeditor it was grabbing the text and adding code to it even if It was entered it as plain text. The fix was simply to exclude FCKeditor from doing it's thing in Blocks. I excluded "admin/build/block/configure/block/*" in FCKeditor configuration. Now the path stays just the path and nothing but the path and the page is included or excluded as it should be. The Block body area is now just HTML code but that I can live with.
Clif
Block visible for front page only...Problem Solved
Finally! Thank You Clif! This did the trick for me after screwing with hundreds of different settings off and on for the past week to get a block to show ONLY on the front page of a site. After setting the exclude path in the FCKeditor, I then had to go back into the Block I was trying to make visible and remove the "p" tags. Presto all is well. Hope this helps someone else out too!
Quiji