联系官方销售客服

1835022288

028-61286886

求助 版主:论坛审计组
我想问下如何在单页中显示一级菜单下的二级菜单如图我使用了栏目
类型:迅睿CMS 更新时间:2020-12-24 11:13:55

我想问下,如何在单页中显示一级菜单下的二级菜单

如图图像 1.jpg

我使用了栏目列表循环,结果报错 https://www.xunruicms.com/doc/388.html   https://www.xunruicms.com/doc/389.html

{category module=share id=2}
			<dd class="web__page-aside-dd">
				<a class="web__page-aside-dd-a d-flex justify-content-between align-items-center" href="{$t.url}" title="{$t.name}"
				 target="_blank">
					<span class="web__page-aside-dd-a-span">{$t.name}</span>
					<i class="iconfont icon-you web__page-aside-dd-a-icon"></i>
				</a>
			</dd>
{/category}


回帖
  • sunbingchen
    #1楼    sunbingchen
    2019-11-06 18:56:10
    Chrome 0
    查到了解决办法了
    {category module=MOD_DIR pid=2 return=c}
    		<dd class="web__page-aside-dd">
    			<a class="web__page-aside-dd-a d-flex justify-content-between align-items-center {if $c.id==$catid}active{/if}" href="{$c.url}"
    			 title="{$c.name}" target="_blank">
    				<span class="web__page-aside-dd-a-span">{$c.name}</span>
    				<i class="iconfont icon-you web__page-aside-dd-a-icon"></i>
    			</a>
    		</dd>
    		{/category}
    满意答案
  • sunbingchen
    #2楼    sunbingchen
    2020-12-24 11:13:55
    Edge 0
    @sunbingchen:感谢,问题已解决