<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
<font face="sans-serif">This should do what you want, without being
overly </font>complicated:<br>
<br>
$arguments = explode('/', request_uri());<br>
if (in_array('yepp', $arguments)) {<br>
// Insert div<br>
}<br>
<br>
As an added bonus, 'request_uri()' is a Drupal function:
<a class="moz-txt-link-freetext" href="http://api.drupal.org/api/function/request_uri/6">http://api.drupal.org/api/function/request_uri/6</a><br>
<br>
<br>
On 28/08/10 11:56, Chris McCreery wrote:
<blockquote
cite="mid:AANLkTinNia4AFOE_wWVzwaO4cNJ1smhPXDKq_bKi4aXi@mail.gmail.com"
type="cite">I am trying to do the following but having issues.
<div><br>
</div>
<div>I would like to insert a specific div tag in my page.tpl.php
when the url alias contains yepp for example when <a
moz-do-not-send="true" href="http://www.domain.com/yepp">www.domain.com/yepp</a>
or <a moz-do-not-send="true" href="http://www.domain.com/yepp/page1">www.domain.com/yepp/page1</a></div>
<div><br>
</div>
<div>If I try using arg(0) it just returns the internal system path
"node".</div>
<div><br>
</div>
<div>Any help would be greatly appreciated.</div>
<div><br>
</div>
<div>Thank you<br clear="all">
<br>
-- <br>
Chris McCreery<br>
</div>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
themes mailing list
<a class="moz-txt-link-abbreviated" href="mailto:themes@drupal.org">themes@drupal.org</a>
<a class="moz-txt-link-freetext" href="http://lists.drupal.org/mailman/listinfo/themes">http://lists.drupal.org/mailman/listinfo/themes</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Kind regards,
Peter Anderson.
<a class="moz-txt-link-freetext" href="http://panda.id.au">http://panda.id.au</a>
</pre>
</body>
</html>