
可自定义添加行数列数的字段信息,用户文本类多数组关系信息管理
添加扩展方式
1.修改
\Application\Admin\Common\function.php
方法 get_attribute_type
添加type数组
'fields' => array('可伸缩自定义字段', 'text NOT NULL'),
2.修改相关模板页 \Application\Admin\View\Article\add.html
\Application\Admin\View\Article\edit.html
添加一个case
<case value="fields">
{:hook('Fields', array('name'=>$field['name'],'value'=>$field['value']))}
</case>
3.后台添加扩展。按照官方文档扩展添加方法添加钩子后,修改表hooks 刚添加的Fileds 内的addons字段如果为空则修改为Fields值。否则hooks 将无法调用插件
更新缓存<很重要>
ok