By sanjanaa on
Hi,
I am showing Search Module in every pages in my site. But I want to avoid these in blog's main page and single blog pages which are opening while clicking on particular Blog entry.
I can do this only for blog main page by setting Search Module Block settings by giving show on every page instead of listed pages. But for single blog pages?
For example:
I want to avoid this module in
www.example.com/?q=blog
www.example.com/?q=node/1
www.example.com/?q=node/2 and so on...
How can I set it up?
Thanks in advance...
Comments
RE: How to avoid showing search modules in blog related pages?
please write the following code in the block display setting select php code
<? Php $var =arg(1);
$node_type=node_load($var);
If($node_type!=”blog”)
{
Return true
}
Else
{
Return false
}
?>
_
uh--- once again, no, this is not correct.
The correct code is:
Once again, please stop giving incorrect assistance in order to link spam.
Need modules in particular pages
Hi worldfallz,
Thanks for your reply. Thats work fine.
Now my another requirement is...
I am using Tag cloud and Monthly Archive modules for my blogs. I want to show these blocks in
1. Main Blog Page (www. example.com/?q=blog)
2. Single Blog entry pages (www.example.com/?q=node/12)
3. User's Blog pages (www.example.com/?q=blog/2)
4. Archive pages (www.example.com/?q=archive/2010/8)
5. Taxonomy pages (www.example.com/?q= taxonomy/term/22)
How can i write php code for this in that block settings?
Thanks in advance.
_
Cross reference: http://drupal.org/node/915530