Right now I have this:
<?php if (arg(1) != '39'): ?> <div> Content </div> <?php endif; ?>
This works just fine but when i try to add in a second arg(1) and OR statement it doesn't work. Any ideas?
On Sun, Jul 11, 2010 at 9:16 PM, Chris McCreery chris.mccreery@gmail.comwrote:
I get node/10 so then arg(1) would be 10 correct? If I test for just arg(1) != "10" it works but when i try to combine multiple conditions doesn't work for me. I'm definitely not a php programmer so I'm sure it's a stupid error on my part.
Thanks,
On Sun, Jul 11, 2010 at 8:51 PM, Michel Morelli michel@ziobuddalabs.itwrote:
Chris McCreery ha scritto:
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.
Ok, for test at the top of page.tpl.php file write
echo $_GET['q'];
and see which is arg(1)
M.
-- Michel 'ZioBudda' Morelli michel@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_budda http://www.ziodrupal.net MSN: michel@ziobuddalabs.it JABBER: michel@ziobuddalabs.it
-- [ Drupal support list | http://lists.drupal.org/ ]
-- Chris McCreery