Jump to content
PupStar

2.3.4 Bootstrap Category Tree Display

Recommended Posts

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


Bootstrap 3 ROCKS!

(or it will if I ever get my head around it lol)

(and I think I have now (w00t) )

Share this post


Link to post
Share on other sites

Hi

 

You could give gadlols alternative categories navigation a try: http://forums.oscommerce.com/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


Bootstrap 3 ROCKS!

(or it will if I ever get my head around it lol)

(and I think I have now (w00t) )

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×