分类下类型,地区,年份跟后台设置的显示不一样

发布于 2022-04-05 16:45:56

111.png
222.png

位置:heml/vod/type.html
代码:

<ul class="stui-screen__list type-slide bottom-line-dot clearfix">
                        <li>
                            <span class="text-muted">按类型</span>
                        </li>
                          {empty name="$obj.type_extend.class"}
                            {maccms:foreach name=":explode(',',$obj.parent.type_extend.class)"}
                            <li><a {if condition="$key gt 12"}class="hide"{/if} href="{:mac_url_type($obj,['class'=>$vo],'show')}">{$vo}</a></li>
                            {/maccms:foreach}
                        {else /}
                            {maccms:foreach name=":explode(',',$obj.type_extend.class)"}
                               <li><a {if condition="$key gt 12"}class="hide"{/if} href="{:mac_url_type($obj,['class'=>$vo],'show')}">{$vo}</a></li>
                            {/maccms:foreach}
                        {/empty}                                
                    </ul>
                    <ul class="stui-screen__list type-slide bottom-line-dot clearfix">
                        <li>
                            <span class="text-muted">按地区</span>
                        </li>
                        {empty name="$obj.type_extend.area"}
                            {maccms:foreach name=":explode(',',$obj.parent.type_extend.area)"}
                            <li><a {if condition="$key gt 12"}class="hide"{/if} href="{:mac_url_type($obj,['class'=>$vo],'show')}">{$vo}</a></li>
                            {/maccms:foreach}
                        {else /}
                            {maccms:foreach name=":explode(',',$obj.type_extend.area)"}
                            <li><a {if condition="$key gt 12"}class="hide"{/if} href="{:mac_url_type($obj,['area'=>$vo],'show')}">{$vo}</a></li>
                            {/maccms:foreach}
                        {/empty}
                    </ul>
                    <ul class="stui-screen__list type-slide bottom-line-dot clearfix">
                        <li>
                            <span class="text-muted">按年份</span>
                        </li>
                        {empty name="$obj.type_extend.year"}
                            {maccms:foreach name=":explode(',',$obj.parent.type_extend.year)"}
                            <li><a {if condition="$key gt 11"}class="hide"{/if} href="{:mac_url_type($obj,['class'=>$vo],'show')}">{$vo}</a></li>
                            {/maccms:foreach}
                        {else /}
                            {maccms:foreach name=":explode(',',$obj.type_extend.year)"}
                            <li><a {if condition="$key gt 11"}class="hide"{/if} href="{:mac_url_type($obj,['year'=>$vo],'show')}">{$vo}</a></li>
                            {/maccms:foreach}
                        {/empty}                        
                    </ul>
                    <ul class="stui-screen__list type-slide bottom-line-dot clearfix">
                        <li>
                            <span class="text-muted">按字母</span>
                        </li>
                        <li {if condition="$param['letter'] eq ''"} class="active"{/if}><a href="{:mac_url_type($obj,['area'=>$param['area'],'lang'=>$param['lang'],'year'=>$param['year'],'level'=>$param['level'],'letter'=>'','state'=>$param['state'],'tag'=>$param['tag'],'class'=>$param['class'],'order'=>$param['order'],'by'=>$param['by'] ],'show')}">全部</a></li>
                        {maccms:foreach name=":explode(',','A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z,0-9')" id="vo2" key="key2"}
                        <li {if condition="$param['letter'] eq $vo2"} class="active"{/if}><a href="{:mac_url_type($obj,['area'=>$param['area'],'lang'=>$param['lang'],'year'=>$param['year'],'level'=>$param['level'],'letter'=>$vo2,'state'=>$param['state'],'tag'=>$param['tag'],'class'=>$param['class'],'order'=>$param['order'],'by'=>$param['by'] ],'show')}">{$vo2}</a><li>
                        {/maccms:foreach}
                   </ul>

查看更多

关注者
0
被浏览
331
1 个回答
大图模板
大图模板 2022-04-08
官方技术人员

@wangxiaomao

基础 -> 分类管理 -> 编辑 里面的才是筛选页 调用的

你截图的这个地方是全局通用预留参数

撰写答案

请登录后再发布答案,点击登录

发布
问题

分享
好友

手机
浏览

扫码手机浏览