君语贤
时光静好,与君语;细水流年,与君同;繁华落尽,与君老...

建站开发>ICMS>正文

ICMS调用推荐文章的设置方法

2019-04-13 14:38 君语贤ICMS推荐文章设置方法调用

对于ICMS系统,在使用上相对比较灵活方便,但是可能唯一不足的就是网上可参考的资料并不算多,官方的文章也是在逐步完善中。下面介绍记录下关于ICMS调用推荐文章的注意事项:

需要调用的推荐文章,除了选中文章属性以外,需要额外删除默认的【普通文章属性[pid="0"]】,比如调用首页推荐,最终的设置方式为:

ICMS调用推荐文章的设置方法

代码层设置:

<!--{iCMS:article:list loop="true" meta="true" pic="true" pid="2" row="3" cid="46"}-->
		<div class="fcona" style="display: none;">
			<!--{if $article_list.pic.url}-->
			<a href="<!--{$article_list.url}-->"><img src="<!--{$article_list.pic.url}-->" border="0" style="opacity: 1; "></a>
			<!--{/if}-->				
			<span class="shadow"><a href="<!--{$article_list.url}-->"><!--{$article_list.title}--></a></span>
		</div>
<!--{/iCMS}-->

注意事项: 1、pid="0"与其他pid值不能一起设置 ;2、调用属性文章需要加入:meta="true"

本文链接:https://www.weguiding.com/icms/401.html