PupStar Posted November 23, 2014 Share Posted November 23, 2014 Hi, I am trying to modify the category tree to display an icon before the category name and also if the category has sub-categories then display an icon to the right of the category name. Now I have managed to add the icons before and after but not entirey sure how to change the class to only display the fa-plus-square icon if subcats exist. I did also notice that after adding the code below that the hover effect stopped working on the cats. I would also like the second icon to align to the right so they are lined up nicely to the right side of the box. var $root_category_id = 0, $max_level = 0, $root_start_string = '<li class="fa fa-angle-right fa-fw" style="display: inline-block;"></li>', $root_end_string = '<li class="cats fa fa-plus-square-o fa-fw" style="display: inline-block;"></li>', $parent_start_string = '', $parent_end_string = '', $parent_group_start_string = '<ul>', $parent_group_end_string = '</ul>', $parent_group_apply_to_root = false, $child_start_string = '<li>', $child_end_string = '</li>', $breadcrumb_separator = '_', $breadcrumb_usage = true, $spacer_string = '', $spacer_multiplier = 1, $follow_cpath = false, $cpath_array = array(), $cpath_start_string = '', $cpath_end_string = ''; Any help would be appreciated. Mark Link to comment Share on other sites More sharing options...
De Dokta Posted November 24, 2014 Share Posted November 24, 2014 Hi You could give gadlols alternative categories navigation a try: http://www.oscommerce.com/forums/topic/397547-tep-draw-categories-tree-finally-no-recursion-just-one-mysql-query/ J.J. Link to comment Share on other sites More sharing options...
PupStar Posted November 24, 2014 Author Share Posted November 24, 2014 Hi You could give gadlols alternative categories navigation a try: http://www.oscommerce.com/forums/topic/397547-tep-draw-categories-tree-finally-no-recursion-just-one-mysql-query/ J.J. @@De Dokta Thanks bud, I have made some changes and I will ask my questions in the other thread Mark Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.