Any downfall to using this?<div><br><div>$path = drupal_get_path_alias($_GET['q']); </div><div>if (strlen(strstr($path,'yepp'))>0): ?><br><br><div class="gmail_quote">On Fri, Aug 27, 2010 at 10:12 PM, Victor Kane <span dir="ltr"><<a href="mailto:victorkane@gmail.com">victorkane@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Would have to try it, but you might have to pass the drupal path through the <a href="http://api.drupal.org/api/function/drupal_get_path_alias/6" target="_blank">http://api.drupal.org/api/function/drupal_get_path_alias/6</a> function first, and then do a text search for yepp<div>
<br></div><div>Victor Kane</div><div><a href="http://awebfactory.com.ar" target="_blank">http://awebfactory.com.ar</a><br><br><div class="gmail_quote"><div><div></div><div class="h5">On Fri, Aug 27, 2010 at 11:07 PM, Khalid Baheyeldin <span dir="ltr"><<a href="mailto:kb@2bits.com" target="_blank">kb@2bits.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div></div><div class="h5"><div>On Fri, Aug 27, 2010 at 9:56 PM, Chris McCreery <span dir="ltr"><<a href="mailto:chris.mccreery@gmail.com" target="_blank">chris.mccreery@gmail.com</a>></span> wrote:<br>
</div><div class="gmail_quote"><div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">
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 href="http://www.domain.com/yepp" target="_blank">www.domain.com/yepp</a> or <a href="http://www.domain.com/yepp/page1" target="_blank">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></blockquote></div><div><br>There is more than one way of doing this. <br><br>Here is a simple one:<br><br>$a = explode('/', check_plain($_SERVER['REQUEST_URI']));<br>
if ($a[1] == 'yepp') {<br>
// Go wild<br>
}<br><br></div></div>-- <br>Khalid M. Baheyeldin<br><a href="http://2bits.com" target="_blank">2bits.com</a>, Inc.<br><a href="http://2bits.com" target="_blank">http://2bits.com</a><br>Drupal optimization, development, customization and consulting.<br>
Simplicity is prerequisite for reliability. -- Edsger W.Dijkstra<br>Simplicity is the ultimate sophistication. -- Leonardo da Vinci<br>
<br></div></div>_______________________________________________<br>
themes mailing list<br>
<a href="mailto:themes@drupal.org" target="_blank">themes@drupal.org</a><br>
<a href="http://lists.drupal.org/mailman/listinfo/themes" target="_blank">http://lists.drupal.org/mailman/listinfo/themes</a><br>
<br></blockquote></div><br></div>
<br>_______________________________________________<br>
themes mailing list<br>
<a href="mailto:themes@drupal.org">themes@drupal.org</a><br>
<a href="http://lists.drupal.org/mailman/listinfo/themes" target="_blank">http://lists.drupal.org/mailman/listinfo/themes</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Chris McCreery<br>
</div></div>