newuser wrote: Is there a way that I can only show the Block based on the module page that Im on? I want to limit my block to only show up when the user clicks on a specific module pages. For Inst ace the forums only showing a block for new forum posts. Posted: Mon Apr 28, 2008 3:13 pm
admin(Mark) wrote: There are two ways this can be achieved. The first can be an hard coded mod that would be inside the mainfile.php blocks functions. You will need to get the module name using the global $name function then use a basic if statement to display the block if it is at the current module. The next option would be to create a full mod that would give the option inside the blocks admin to choose which module the block should be displayed. I supposed a simpler method could also be achieved inside the theme.php file. I will do a test and see how it turns out. Posted: Mon Apr 28, 2008 5:07 pm
admin(Mark) wrote: This tutorial should do the trick. Let me know if it works the way you wanted. http://www.westernstudios.net/tutorial-block-per-module Posted: Tue Apr 29, 2008 1:29 pm
newuser wrote: wohoo!! Works perfectly. Simple and easy. Thanks again mark. Posted: Tue Apr 29, 2008 2:25 pm
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||