xml Miva - 另类树种
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了xml Miva - 另类树种相关的知识,希望对你有一定的参考价值。
<mvt:do name="l.result" file="g.Module_Library_DB" value="CategoryList_Load_Parent( l.settings:category:id, l.settings:subcats )" />
<mvt:foreach iterator="sub_category" array="subcats">
<mvt:do file="g.Module_Feature_URI_DB" name="l.settings:sub_category:canonical_exists" value="URI_Load_Category_Canonical( l.settings:sub_category:id, l.settings:sub_category:canonical )" />
<mvt:if expr="l.settings:sub_category:canonical_exists">
<mvt:assign name="l.settings:sub_category:link" value="l.settings:sub_category:canonical:uri" />
<mvt:else>
<mvt:assign name="l.settings:sub_category:link" value="g.domain:mm_url $ 'Screen=CTGY&Category_Code=' $ l.settings:sub_category:code" />
</mvt:if>
<mvt:do file="g.Module_Root $ '/modules/component/cmp-cssui-cattree.mvc'" name="l.result" value="CSSUI_CatTree_Load( l.settings:sub_category:id, l.settings:sub_category )" />
</mvt:foreach>
<mvt:foreach iterator="cat" array="breadcrumbs:links">
<mvt:assign name="l.settings:cat:level" value="POS1" />
<li class="level-&mvte:cat:level; active"><a href="&mvte:cat:link;">&mvte:cat:name;</a></li>
</mvt:foreach>
<mvt:if expr="l.settings:subcats GT 0">
<mvt:assign name="l.settings:sub_category_level" value="l.settings:cat:level + 1" />
<mvt:foreach iterator="sub_category" array="subcats">
<li class="level-&mvte:sub_category_level;"><a href="&mvte:sub_category:link;">&mvte:sub_category:name;</a></li>
</mvt:foreach>
</mvt:if>
以上是关于xml Miva - 另类树种的主要内容,如果未能解决你的问题,请参考以下文章
xml MIVA合并类别,products.xml
xml Miva - 自定义XML站点地图
xml Miva - Price Group XML
xml Miva - 用模板语言处理XML配置
xml Miva - master_provide.xml
xml Miva - URI添加,删除和删除所有XML配置