对于ICMS系统,在使用上相对比较灵活方便,但是可能唯一不足的就是网上可参考的资料并不算多,官方的文章也是在逐步完善中。下面介绍记录下关于icmS调用推荐文章的注意事项:
需要调用的推荐文章,除了选中文章属性以外,需要额外删除默认的【普通文章属性[pid="0"]】,比如调用首页推荐,最终的设置方式为:
代码层设置:
<!--{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"