| [4.0] Hiding the right blocks |
|
|
| Written by Arthur Konze | |
| Monday, 17 February 2003 | |
|
A very common question which i'm asked is how to hide the right blocks on content pages. Naturally Mambo don't hide the complete right block. Only within a few components like the poll the admin can change if this modules block should be displayed on certain pages. Hiding the complete right block is pretty easy. I'm using the "option" variable to let my themes know, on which page we are. This could be integrated very simple. Get your theme and search for the integration of the right block. It should look like this:
Just replace this with the following code:
Now your theme check the page the user is currently viewing and hides the right block or not depending on the pages you integrated in the "case" list. If you delete every case except of the articles, the right block will only be hidden on article pages. If you add a case for "Downloads" also the filebase won't show you any right block. |









