帝国CMS技巧:将TAGS填写移到基本信息的方法

2020-05-0210:15:13网站建设与开发Comments2,008 views字数 1146阅读模式

帝国cms在 新增/编辑 信息时,信息的TAGS属性隐藏于选项卡【选项设置】中,如果将TAGS放到【基本信息】选项卡中,则可以省时省力又方便管理。
效果展示:文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/18491.html

帝国CMS技巧:将TAGS填写移到基本信息的方法

修改方法:
1、打开 e/admin/AddNews.php 文件
找到下边的代码,大概在702行。
<?php文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/18491.html

if(strstr($public_r['usetags'],','.$modid.','))文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/18491.html

{文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/18491.html

  $infotag_readonly='';文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/18491.html

$infotag_copykeyboard='  <input type="button" name="Submit3" value="复制关键字" onclick="document.add.infotags.value=document.add.keyboard.value;">';文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/18491.html

  if(strstr($public_r['chtags'],','.$modid.','))文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/18491.html

{文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/18491.html

    $infotag_readonly=' readonly';文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/18491.html

    $infotag_copykeyboard='';文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/18491.html

}文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/18491.html

?>文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/18491.html

<tr>文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/18491.html

<td height="25" bgcolor="#FFFFFF">TAGS    :文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/18491.html

  <input name="infotags" type="text" id="infotags" value="<?=$r[infotags]?>" size="32"<?=$infotag_readonly?>>文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/18491.html

  <input type="button" name="Submit" value="选择" onclick="window.open('tags/ChangeTags.php?form=add&field=infotags<?=$ecms_hashur['ehref']?>','','width=700,height=550,scrollbars=yes');">文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/18491.html

  <?=$infotag_copykeyboard?>文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/18491.html

  <input name="oldinfotags" type="hidden" id="oldinfotags" value="<?=$r[infotags]?>">文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/18491.html

  <font color="#333333">(多个用","逗号格开)</font></td>文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/18491.html

</tr>文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/18491.html

<?php文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/18491.html

}文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/18491.html

?>文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/18491.html

2、然后回到管理数据表,点击管理系统模型。点击修改 然后把 新增加的字段对应的选项勾选上文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/18491.html

3、在设置---数据表与系统模型---管理数据表中,找到你想要修改的模型,打开修改数据表的 special.field 字段
special.field 是系统默认字段,在字段的“输入表单替换html代码”中末尾,找到 </table> ,在其上插入第一步中删除的代码即可。
注意:所有需使用tag功能的数据表都需要做第二步第三部的修改。文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/18491.html

文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/18491.html
  • 本站内容整理自互联网,仅提供信息存储空间服务,以方便学习之用。如对文章、图片、字体等版权有疑问,请在下方留言,管理员看到后,将第一时间进行处理。
  • 转载请务必保留本文链接:https://www.cainiaoxueyuan.com/cms/18491.html

Comment

匿名网友 填写信息

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定