How can I force it? I only founded solutions based on content type.
Thank's!
Pol Maresma PolNetwork.com / Serveis d'Internet msn: marolijo
On Tuesday 11 March 2008 3:07:49 pm 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
If I understand what you're saying, on the block's configuration page, set "Page specific visibility settings" to "Show on only the listed pages" and put "search/*" (w/o the quotes) in the "Pages" textarea and save.
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
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@drupal.org [mailto:support-bounces@drupal.org] En nombre de sander-martijn Enviado el: dimarts, 11 / març / 2008 23:56 Para: support@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
I tried to add /search/* without luk :(
$uris = array('/portada' => 1, '/noticies' => 1, '/search/*' => 1);
Thank's!
-----Mensaje original----- De: support-bounces@drupal.org [mailto:support-bounces@drupal.org] En nombre de Marolijo - Pol maresma Enviado el: dimecres, 12 / març / 2008 00:11 Para: support@drupal.org Asunto: Re: [support] Show block on search page
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@drupal.org [mailto:support-bounces@drupal.org] En nombre de sander-martijn Enviado el: dimarts, 11 / març / 2008 23:56 Para: support@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
-- [ Drupal support list | http://lists.drupal.org/ ]
__________ Información de NOD32, revisión 2938 (20080311) __________
Este mensaje ha sido analizado con NOD32 antivirus system http://www.nod32.com