Home  >  Article  >  Backend Development  >  织梦dede arclist标签里如何用 if

织梦dede arclist标签里如何用 if

WBOY
WBOYOriginal
2016-06-13 12:44:06909browse

织梦dede arclist标签里怎么用 if
{dede:arclist row='6' titlelen='20'  imgwidth='80' imgheight='107' addfields='body'  typeid='15' channelid='1'}
                 织梦dede arclist标签里如何用 if

                {dede:if field.shorttitle != '' }
                    查看详细
                {else}
                    敬请期待
                {/dede:if}
  {/dede:arclist}

在列表循环里,我想用if,当字段shorttitle 不为空时,显示“查看详细”,反之显示“敬请期待”。
我这里的if是错的。请问该怎么写啊,谢谢。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn