Thanks Carl & Michael.

On Mon, Apr 18, 2011 at 10:26 PM, Michael Favia <[email protected]>wrote:

>  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:
>
> in_array('page__taxonomy', $variables['theme_hook_suggestions']);
>
> Please use dpm() and the devel module or a debugger to get more
> information.
>
> --
> Michael Favia                   [email protected]
> tel. 512.669.5650            http://www.favish.com
>
>


-- 
:DJ

Reply via email to