<#list cms.documents("channel=某个栏目名称,num=1, channeltype=2") as document>
<!--如果第一条新闻 有图片 -->
<#if (""!=(document.pic)) && ("null"!=(document.pic))>
取出 它的照片

<#else>
取出默认图片
</#if>
<!---->
</#list>

 

 

这个 是自己 想的,还没有用上,等到嵌模板的时候,付诸实践。

相关文章:

  • 2021-10-06
  • 2022-12-23
  • 2021-06-16
  • 2022-12-23
  • 2021-08-05
  • 2022-03-02
  • 2022-01-28
  • 2022-01-07
猜你喜欢
  • 2022-12-23
  • 2021-10-03
  • 2021-06-24
  • 2021-12-22
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案