参考的{SITE_LOGO}自定义了名字成为{SITE_ICON}的项目信息无法在网站显示。 我在 site_param.html 参考增加了一个 iconfield
{$iconfield}
然后在Site_param.php中也同样参考 {SITE_LOGO}增加了这2段代码 $logo = [ 'logo' => [ 'ismain' => 1, 'fieldtype' => 'File', 'fieldname' => 'logo', 'setting' => ['option' => ['ext' => 'jpg,png', 'size' => 4, 'input' => 1,'attachment' => 1]] ] ]; $icon = [ 'icon' => [ 'ismain' => 1, 'fieldtype' => 'File', 'fieldname' => 'icon', 'setting' => ['option' => ['ext' => 'png', 'size' => 4, 'input' => 1,'attachment' => 1]] ] ]; 'iconfield' => dr_fieldform($icon['icon'], $data['config']['icon']), 为了能直接调自定义的 {SITE_ICON}在Phpcmf.php也参考 {SITE_LOGO}增加了常量 define('SITE_ICON', $this->get_cache('site', SITE_ID, 'config', 'SITE_ICON')); 不知道哪一个环节出了问题,附件能正常上传,但是在网站主页却无法 {SITE_ICON},而默认的{SITE_LOGO}是可以正常显示的。 image