[support] Show block on search page

Marolijo - Pol maresma marolijo at yahoo.es
Tue Mar 11 23:11:22 UTC 2008


Thank's but I'm using this function to show the block on selected node
types, how can I add the search page?

<?php
  $match = FALSE;
  $types = array('fruita_seca' => 1,'webform' => 1, 'page' => 1, 'noticia'
=> 1);
  $uris = array('/portada' => 1, '/noticies' => 1, '/' => 1);
  if ((arg(0) == 'node') && is_numeric(arg(1))) {
    $node = node_load(arg(1));
    $match = isset($types[$node->type]);
  }
  $match |= isset($uris[request_uri()]);
  return $match;
?>

Thank's again!

> -----Mensaje original-----
> De: support-bounces at drupal.org 
> [mailto:support-bounces at drupal.org] En nombre de sander-martijn
> Enviado el: dimarts, 11 / març / 2008 23:56
> Para: support at drupal.org
> Asunto: Re: [support] Show block on search page
> 
> In the block configuration you can set it to only show on a 
> certain page.  as far as I know this includes search.
> 
> Marolijo - Pol maresma wrote:
> > How can I force it? I only founded solutions based on content type.
> > 
> > Thank's!
> > 
> > Pol Maresma
> > PolNetwork.com / Serveis d'Internet
> > msn: marolijo
> > 
> --
> [ Drupal support list | http://lists.drupal.org/ ]
> 
> __________ Informacisn de NOD32, revisisn 2938 (20080311) __________
> 
> Este mensaje ha sido analizado con  NOD32 antivirus system 
> http://www.nod32.com
> 
> 




More information about the support mailing list