[support] Testing for arg() OR is_front
Chris McCreery
chris.mccreery at gmail.com
Mon Jul 12 00:48:50 UTC 2010
Hi Michel I am testing for this in my page.tpl.php trying to display a
certain <div> when arg(1) doesn't equal 27 or 39.
On Sun, Jul 11, 2010 at 8:40 PM, Michel Morelli <michel at ziobuddalabs.it>wrote:
> Chris McCreery ha scritto:
>
> Hi I am trying to test for arg(1) OR is_front however when I set this up
> neither seem to work but if I do them separately they work fine. I assume
> it's just my syntax but I'm honestly not sure. Any help would be great.
>
> Hi, where do you check this ?
> $is_front is available only in page(-*).tpl.php file, while
> $vars['is_front'] is available in themename_preprocess_page($vars) function.
>
> M.
>
> --
> Michel 'ZioBudda' Morelli michel at ziobuddalabs.it
> Sviluppo applicazioni CMS DRUPAL e web dinamiche (LAMP+Ajax)
> Telefono: 0200619074
> Telefono Cell: +39-3939890025 -- Fax: +39-0291390660
> http://www.ziobudda.net ICQ: 58351764 http://www.ziobuddalabs.it Skype: zio_buddahttp://www.ziodrupal.net MSN: michel at ziobuddalabs.it
> JABBER: michel at ziobuddalabs.it
>
>
> --
> [ Drupal support list | http://lists.drupal.org/ ]
>
--
Chris McCreery
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/support/attachments/20100711/d5e65eb9/attachment.html
More information about the support
mailing list