|
|
@@ -38,7 +38,7 @@ function obtaintags($aid, $num = 3) |
|
|
|
}
|
|
|
|
return $tags;
|
|
|
|
}
|
|
|
|
//提取文档多图片[field:body function='obtainimgs(@me,3)'/]3表示调用文档3张图片,则附加字段需添加body字段调用channelid='模型id' addfields='字段1,字段2'
|
|
|
|
//提取文档多图片[field:body function='obtainimgs(@me,3)'/]3表示调用文档3张图片,例如:文档模型body字段,列表附加字段添加body,dede:arclist标签调用添加channelid='1' addfields='body'
|
|
|
|
if (!function_exists('obtainimgs')) {
|
|
|
|
function obtainimgs($string, $num)
|
|
|
|
{
|
|
|
@@ -71,7 +71,7 @@ function obtainalt($newalt) |
|
|
|
$newalt = str_ireplace(" /", "", $newalt);
|
|
|
|
return $newalt;
|
|
|
|
}
|
|
|
|
//联动单筛选{dede:php}obtainfilter(模型id,类型,'字段1,字段2');{/dede:php}类型表示前台展现方式对应case值
|
|
|
|
//联动单筛选{dede:php}obtainfilter(模型id,类型,'字段1,字段2');{/dede:php}类型表示前台展现方式,对应case值,例如:文档模型style字段radio选项卡类型,列表附加字段类别添加style,标签调用{dede:php}obtainfilter(1,1,'style');{/dede:php}
|
|
|
|
function obtainfilter($channelid, $type = 1, $fieldsnamef = '', $defaulttid = 0, $toptid = 0, $loadtype = 'autofield')
|
|
|
|
{
|
|
|
|
global $tid, $dsql, $id, $aid;
|
|
|
|