<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
On 04/18/2011 11:47 AM, Deva wrote:
<blockquote
cite="mid:BANLkTikkXYM+bdcVfj9n7+jPLjcUo3NSbA@mail.gmail.com"
type="cite"><font face="verdana,sans-serif">One more question.<br>
How to identify in "preprocess_page" function, if the current
loading page is "Taxonomy Term" page.</font><br>
</blockquote>
Assuming you actually want to theme and change the page.tpl.php or
add a template suggestion at that level and not at the lower
preprocess_taxonomy_term() level then you would do so the same way
that anyother path is checked. L<br>
<br>
ook in the hook_menu for taxonomy and youll find a section there the
"real drupal path" is defined. Then use the arg() function test for
that path in your preprocess function.<br>
<br>
Alternatively you can add your suggestion ANY time you find this to
be true:<br>
<br>
in_array('page__taxonomy', $variables['theme_hook_suggestions']);<br>
<br>
Please use dpm() and the devel module or a debugger to get more
information.<br>
<pre class="moz-signature" cols="72">--
Michael Favia <a class="moz-txt-link-abbreviated" href="mailto:michael@favish.com">michael@favish.com</a>
tel. 512.669.5650 <a class="moz-txt-link-freetext" href="http://www.favish.com">http://www.favish.com</a>
</pre>
</body>
</html>