I've created a number of blocks, and after reading my Pro Drupal Development book and The Packt Drupal book, I'm wondering how I can make blocks show on certain pages. I know 'front' is the front page, 'admin' is the admin section. Is there a list of these standard words.
Again, I am using the standard Path module and Clean Url's so I have various nodes (Page content types) set to different paths like node-id 101 is 'about.htm'
So, if I want blocks to be on just this page 'about.htm', then what would I put in the 'show on this page'? I tried 'about.htm' but that didn't really work.
If someone can just point me in the right direction, that would be great! Thanks!
Tom Holmes Jr. ha scritto:
I've created a number of blocks, and after reading my Pro Drupal Development book and The Packt Drupal book,
Can you give me some "review" of the Packt Drup al book ?
Again, I am using the standard Path module and Clean Url's so I have various nodes (Page content types) set to different paths like node-id 101 is 'about.htm'
You have one node.tpl.php for all site ?
If you have only one node.tpl.php you can add this where you want the block:
<?php
if (arg(0) == 'node' && arg(1) == 101) { //here echo my block -- not in front page } ?>
Or if you want a new template file only for node 101 you can create node-101.tpl.php file.
M.