sam6 Posted March 18, 2004 Share Posted March 18, 2004 Ok I have this for diplaying catagorie name and it works fine it displays the current catagorie. <?php echo ucwords(strtolower($catagories('catagories_name'))); ?> i would also like to display the parent catagorie when there is one any ideas. thanks Link to comment Share on other sites More sharing options...
sam6 Posted March 18, 2004 Author Share Posted March 18, 2004 i am not to good at php yet so dose any one have an idea on this Link to comment Share on other sites More sharing options...
sam6 Posted March 18, 2004 Author Share Posted March 18, 2004 I cant let dthis one get away i have been working on it all day! I need to display the catagorie folowed py the sub catagorie cinda like the bread crumbs which i know nothing about yet. The above code works for diplaying the current catagorie i need to chang or make a nother one for displaying the parent catagorie. Link to comment Share on other sites More sharing options...
sam6 Posted March 18, 2004 Author Share Posted March 18, 2004 wow sorry about the typing Link to comment Share on other sites More sharing options...
sam6 Posted March 19, 2004 Author Share Posted March 19, 2004 Ok I have this for diplaying catagorie name and it works fine it displays the current catagorie.<?php echo ucwords(strtolower($catagories('catagories_name'))); ?> i would also like to display the parent catagorie when there is one any ideas. thanks Nobody wants to give me help with this? Link to comment Share on other sites More sharing options...
burt Posted March 19, 2004 Share Posted March 19, 2004 Look at how the breadcrumb works. Link to comment Share on other sites More sharing options...
sam6 Posted March 19, 2004 Author Share Posted March 19, 2004 Look at how the breadcrumb works. Ya i looked at how they work not that i understan compleatly! If i call the breadcrumbs.php it will list all that is in the trail> I just want to display the parent catagory along side the current catagory. i have it working for the current catagory the parent catagory is a little more challanging i guse? I will keep trying thanks Link to comment Share on other sites More sharing options...
methodprobiz Posted March 5, 2006 Share Posted March 5, 2006 Ya i looked at how they work not that i understan compleatly!If i call the breadcrumbs.php it will list all that is in the trail> I just want to display the parent catagory along side the current catagory. i have it working for the current catagory the parent catagory is a little more challanging i guse? I will keep trying thanks Did you ever find the solution for this? I am interested in doing this as well. Link to comment Share on other sites More sharing options...
Guest Posted March 5, 2006 Share Posted March 5, 2006 you could duplicate the tep_get_parent_categories - remove the recursion - and make it return the category's parent's name. That function is in the catalog\includes\functions\general.php Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.