[development] Custom template for taxonomy term page in Drupal 7
michael.favia at gmail.com
Mon Apr 18 16:56:35 UTC 2011
On 04/18/2011 11:47 AM, Deva wrote:
> One more question.
> How to identify in "preprocess_page" function, if the current loading
> page is "Taxonomy Term" page.
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
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.
Alternatively you can add your suggestion ANY time you find this to be true:
Please use dpm() and the devel module or a debugger to get more information.
Michael Favia michael at favish.com
tel. 512.669.5650 http://www.favish.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the development