图集name='imgurls' 判断

无论用{dede:field name='imgurls' alt='图片输出区'} 还是{dede:productimagelist} 都应该先添加序列号(详情看http://blog.csdn.net/hyt48079287/article/details/7333107)


{dede:field name='imgurls' alt='图片输出区'} 的判断方法是

[field:photoid runphp='yes']$a=""; $b="hide";if (@me==1) @me=$a; else @me=$b;[/field:photoid]


{dede:productimagelist} 的判断方法是

[field:global runphp='yes' name=autoindex]$a="hide"; $b="";if (@me==1) @me=$a; else @me=$b;[/field:global]



猜你喜欢

转载自blog.csdn.net/hyt48079287/article/details/47850359