现在我可以做到四级循环,不知道需不需要做到五级
<ul class="nav"> <!-- 一级栏目 --> [e:loop={'select classid, classname, bclassid, classpath from phome_enewsclass where bclassid=0 order by myorder,classid','',24,0}] <li class="nav-item"> <a href="/[!--classpath--]/" class="nav-link">[!--classname--]</a> <ul class="submenu"> <!-- 二级栏目 --> [e:loop={'select classid, classname, bclassid, classpath from phome_enewsclass where bclassid=[!--classid--] order by myorder,classid','',24,0}] <li class="submenu-item"> <a href="/[!--classpath--]/" class="submenu-link">[!--classname--]</a> <ul class="sub-submenu"> <!-- 三级栏目 --> [e:loop={'select classid, classname, bclassid, classpath from phome_enewsclass where bclassid=[!--classid--] order by myorder,classid','',24,0}] <li class="sub-submenu-item"> <a href="/[!--classpath--]/" class="sub-submenu-link">[!--classname--]</a> <ul class="sub-sub-submenu"> <!-- 四级栏目 --> [e:loop={'select classid, classname, bclassid, classpath from phome_enewsclass where bclassid=[!--classid--] order by myorder,classid','',24,0}] <li class="sub-sub-submenu-item"> <a href="/[!--classpath--]/" class="sub-sub-submenu-link">[!--classname--]</a> </li> [/e:loop] </ul> </li> [/e:loop] </ul> </li> [/e:loop] </ul> </li> [/e:loop] </ul>
|