xml Readytheme基于类别代码//检查是否存在并显示。 //你可以拥有一堆不同的布局:)

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了xml Readytheme基于类别代码//检查是否存在并显示。 //你可以拥有一堆不同的布局:)相关的知识,希望对你有一定的参考价值。

<mvt:comment>
|
| Look for Readytheme items:
| - code_ll (Large Left)
| - code_st (Small Top)
| - code_sb (Small Bottom)
| code = current category code
|
</mvt:comment>
<mvt:assign name="g.largeleft" value="l.settings:category:code $ '_ll'" />
<mvt:assign name="g.smalltop" value="l.settings:category:code $ '_st'" />
<mvt:assign name="g.smallbottom" value="l.settings:category:code $ '_sb'" />
<mvt:item name="readytheme" param="load_image(g.largeleft, l.settings:category:largeleft)" />
<mvt:item name="readytheme" param="load_image(g.smalltop, l.settings:category:smalltop)" />
<mvt:item name="readytheme" param="load_image(g.smallbottom, l.settings:category:smallbottom)" />
<mvt:if expr="l.settings:readytheme:category:largeleft:active AND l.settings:readytheme:category:smalltop:active AND l.settings:readytheme:category:smallbottom:active">
	<div class="row">
		<div class="column large-two-thirds large-left">
			 <mvt:item name="readytheme" param="image( g.largeleft )" />
		</div>
		<div class="column large-one-third small-top nlp">
			<mvt:item name="readytheme" param="image( g.smalltop)" />
		</div>
		<div class="column large-one-third small-bottom nlp">
			<mvt:item name="readytheme" param="image( g.smallbottom)" />
		</div>
	</div>
</mvt:if>

以上是关于xml Readytheme基于类别代码//检查是否存在并显示。 //你可以拥有一堆不同的布局:)的主要内容,如果未能解决你的问题,请参考以下文章

xml 类别树Readytheme项目 - 最大

xml 类别树Readytheme项目 - 最大

html 类别树:顶级readytheme,拉入子类

xml readytheme csv xml

xml readytheme csv xml

xml Readytheme导航集 - 移动版