How the channelartlist of dedecms does not loop ul

                                                                            <ul class="z-nav-conter clearfix">
            <li class="{dede:field name=typeid runphp="yes"}(@me=="")? @me="active":@me="";{/dede:field}"><a href="/"><span></span></a></li>
            
         {dede:channelartlist  typeid="top"    currentstyle="<li class="active"><a href="~typelink~" ><span>~typename~</span></a></li>"}  
         
         <li><a href="{dede:field name="typeurl"/}"><span>{dede:field name="typename"/}</span></a></li>
            
                {dede:channel type="son" noself="yes" } <ul class="z-nav-sub">
                
                <li><a href="[field:typeurl/]"><span>[field:typename/]</span></a></li>
                
                 </ul>{/dede:channel}  
           
        {/dede:channelartlist} 
        
        
        
                                                                            </ul>

this is the column and subcolumn code I called with the dedecms loop. The problem with
is that < ul class= "z-nav-sub" > follows the loop, as follows:

                                                                            <ul class="z-nav-conter clearfix">
            <li class="active"><a href="/"><span></span></a></li>
            
         <li><a href="/a1brand/"><span></span></a></li>
            
                <li><a href="/product/"><span></span></a></li>
            
                 <ul class="z-nav-sub">
                
                <li><a href="/product/meishidapei/"><span></span></a></li>
                
                 </ul> <ul class="z-nav-sub">
                
                <li><a href="/product/nut/"><span></span></a></li>
                
                 </ul> <ul class="z-nav-sub">
                
                <li><a href="/product/seaSedge/"><span></span></a></li>
                
                 </ul> <ul class="z-nav-sub">
                
                <li><a href="/product/negative/"><span></span></a></li>
                
                 </ul> <ul class="z-nav-sub">
                
                <li><a href="/product/donkeyHideGelatinCake/"><span></span></a></li>
                
                 </ul><li><a href="/foundingTeam/"><span></span></a></li>
            
                <li><a href="/a/news/"><span></span></a></li>
            
                <li><a href="/contact/"><span></span></a></li>
            
                                                                                  </ul>

the effect I want is this:

                                                                            
                                                                                                            <ul class="z-nav-conter clearfix">
            <li class="active"><a href="/"><span></span></a></li>
            <li><a href="/a1brand/"><span></span></a></li>
            <li><a href="/product/"><span></span></a></li>
                 <ul class="z-nav-sub">
                <li><a href="/product/meishidapei/"><span></span></a></li>
                <li><a href="/product/nut/"><span></span></a></li>
                <li><a href="/product/seaSedge/"><span></span></a></li>
                <li><a href="/product/negative/"><span></span></a></li>
                <li><a href="/product/donkeyHideGelatinCake/"><span></span></a></li>
                 </ul>
                 <li><a href="/foundingTeam/"><span></span></a></li>
                <li><a href="/a/news/"><span></span></a></li>
                <li><a href="/contact/"><span></span></a></li>
            
     </ul>

how to achieve it?

Feb.28,2021

you can use the php tag in the template to determine whether there are any subclasses in the column that are cycling ul

.

https://blog.csdn.net/linhui0.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e41c9c-440ee.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e41c9c-440ee.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?