ѡ̳

标题: 新增万能字段的读取字段值功能 [打印本页]

作者: admin    时间: 2019-11-14 13:39
标题: 新增万能字段的读取字段值功能
原有的支持{fieldname}  获取表单。
但获取不了表单值
增加{$fieldvalue}  获取该字段的值
修改位置application\modules\content\templates  
content_edit.tpl.php

$info['form'] = str_replace('{'.$_fm.'}',$_fm_value['form'],$info['form']);
增加

$info['form'] = str_replace('{$'.$_fm.'}',$data[$_fm],$info['form']);


和content_add.tpl.php
$info['form'] = str_replace('{'.$_fm.'}',$_fm_value['form'],$info['form']);
增加
$info['form'] = str_replace('{$'.$_fm.'}','',$info['form']);





欢迎光临 ѡ̳ (http://www.sunminxuan.cn/bbs/) Powered by Discuz! X3.4