PHPCMS V9的扩展功能很强大,系统已经默认带了很多的字段类型,如果需要二次开发,可以自行进行扩展。但是默认的字段没有关联字段,关联字段在一些小说之类的模型里面可以使用,把分散的信息进行归类整理,还是比较实用的。下面小编就搜集了一篇添加PHPCMS V9关联字段的文章。
升级功能:
1.读取数据库模型显示方式
2.支持下拉菜单显示方式(第一版功能)
3.模糊搜索ajax显示方式
效果图如下:





增加方法:
1.把文件解压到\phpcms\modules\content\fields\linkfield\文件下
2.修改\phpcms\modules\content\fields\fields.inc.php文件
在'omnipotent'=>'万能字段'下一行增加
'linkfield'=>'关联',
去后台内容—模型管理——添加字段选择并联。