On Fri, Aug 27, 2010 at 9:56 PM, Chris McCreery chris.mccreery@gmail.comwrote:
I am trying to do the following but having issues.
I would like to insert a specific div tag in my page.tpl.php when the url alias contains yepp for example when www.domain.com/yepp or www.domain.com/yepp/page1
If I try using arg(0) it just returns the internal system path "node".
There is more than one way of doing this.
Here is a simple one:
$a = explode('/', check_plain($_SERVER['REQUEST_URI'])); if ($a[1] == 'yepp') { // Go wild }