![]() |
Direct Link to parent category
Just say I have one category:
Intel and underneath this 'parent' category I have 3 subcategories: Celeron Pentium Pentium Mobile If a customer is viewing the products listed in the "Pentium" category, but wants to 'jump back' one level to "Intel" - is there a way I can provide such a direct link back to this 'parent' category? I want to achieve this *without* using the full length breadcrumbs (location.tpl). I had a stab at this, but the code below produces a link for the *current* category - if somebody knows how to refer to the *2nd* last element of the $location array I think it might do the trick: Code:
{if !$subcategories} |
I pasted this elsewhere, but it might be useful here too..
Hi Everyone found it. For anyone else with a similar problem: $location[1].1 will give the immediate parent category id. Cheers. |
Actually, this is not COMPLETE. Please disregard till next post...
|
All times are GMT -8. The time now is 01:44 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.