[development] Custom template for taxonomy term page in Drupal 7
devendra.in at gmail.com
Mon Apr 18 17:02:33 UTC 2011
Thanks Carl & Michael.
On Mon, Apr 18, 2011 at 10:26 PM, Michael Favia <michael.favia at gmail.com>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
> in_array('page__taxonomy', $variables['theme_hook_suggestions']);
> Please use dpm() and the devel module or a debugger to get more
> 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