kishor10d / Admin-Panel-User-Management-using-CodeIgniter

Admin Panel User Management Demo - CodeIgniter + AdminLTE Theme
http://cias.codeinsect.com
GNU General Public License v3.0
334 stars 244 forks source link

treeview / treeview-menu is not working in a sidebar? #60

Closed coloftech closed 5 years ago

coloftech commented 5 years ago

Hello I download it last january the sidebar toggle/dropdown menu is working, but as i see you update the application i download it again the see the changes, i like your new update, but i can;t make the sidebar dropwdown treeview/treeview menu to work see my code below.

<li class="treeview">
              <a href="#" >
                <i class="fa fa-file-o"></i>
                <span>Post</span><span class="pull-right-container">
              <i class="fa fa-angle-left pull-right"></i>
            </span>
              </a>
              <ul class="treeview-menu">
                <li><a href="<?=base_url('post/add')?>"><i class="fa fa-circle-o"></i>Add</a></li>
                <li><a href="<?=base_url('post')?>"><i class="fa fa-circle-o"></i>View all</a></li>
              </ul>
            </li>

No error in my console.

coloftech commented 5 years ago

I update my code a bit now it working but not the same as i expected it to work. Hope someone who encounter this may help you.

<li class="treeview">
              <a href="<?=base_url('post')?>" > /* add the post index directly to parent menu */
                <i class="fa fa-file-o"></i>
                <span>Post</span><span class="pull-right-container">
              <i class="fa fa-angle-left pull-right"></i>
            </span>
              </a>
              <ul class="treeview-menu">
                <li><a href="<?=base_url('post/add')?>"><i class="fa fa-circle-o"></i>Add</a></li>
            /*    <li><a href="<?=base_url('post')?>"><i class="fa fa-circle-o"></i>View all</a></li> */ /* i remove this line */
              </ul>
 </li>
kishor10d commented 5 years ago

@coloftech : Hi, will check and come with the update. Meanwhile you can try new html and css classes from AdminLTE latest version. I think the html you have written is not supported by new version of AdminLTE.

boedyirh commented 5 years ago

Experience the same thing....no dropdown menu in the sidebar

coloftech commented 5 years ago

@coloftech : Hi, will check and come with the update. Meanwhile you can try new html and css classes from AdminLTE latest version. I think the html you have written is not supported by new version of AdminLTE.

Nope, I am using the adminlte2, for now i copy all your code to work with the default adminlte2 theme.

kishor10d commented 5 years ago

@coloftech and @boedyirh : Done with this thing. Please check this commit

data-widget="tree" only this thing was missing to work multilevel menus.