Ecshop后台商品添加一个新的FCK编辑器和字的详细介绍! 1.在数据库 ecs_goods 这个表里面新建 你所需要的字段。例如(goods_xxx,goods_xxx1) 2.找到 admin/templates/goods_info.htm 这个文件。在相关地方加入你所需要的字段。按照他原来的文本框复制 一个然后修改下名称就可以。 如果是需要加入像商品描述用FCK编辑器的这种的话: 他原来的是这样写的:{$FCKeditor}。找到admin/goods.php 大约在420行就可以找到这个句代码:create_html_editor('goods_desc', $goods['goods_desc',); create_html_editor() 这个函数是在 admin/include/lib_main.php里面,大约在306行; 他是这样写的: function create_html_editor($input_name, $input_value = '') { global $smarty; $editor = new FCKeditor($input_name); $editor->BasePath = '../includes/fckeditor/'; $editor->ToolbarSet = 'Normal'; $editor->Width = '100%'; $editor->Height = '320'; $editor->Value = $input_value; $FCKeditor = $editor->CreateHtml(); $smarty->assign('FCKeditor', $FCKeditor);//这里输出了。 } 所以我们要用的话就不能写同一个了。就需要另外新建一个。 新建方法:在他下面加入一个函数 ...
内容已隐藏,请关注公众号输入验证码查看
本帖支持关注公众号查看
【无套路 无套路 无套路 扫描二维码关注公众号发送【验证码】收到验证码 在上面输入点击提交查看即可显示隐藏内容】
|