|
织梦文章及图片中显示总页数的代码
{dede:sql sql="select imgurls as string from dede_addonimages where aid=~aid~"}
[field:string runphp='yes',
$string = @me;
preg_match_all('/\{\/dede\:img\}/',$string,$array);
if(isset($array[0][0]))
@me=count($array[0]);
else
@me='';
[/field:string,
{/dede:sql}
当前页标签:{dede:field name='nowpage'/}
总页数标签:{dede:field name='totalpage'/} |
|