PHPCMS栏目管理里新增字段
  • 分类:建站问题
  • 发表:2014-05-17
  • 围观(6,755)
  • 评论(1)

1、根据需要在数据库的v9_category表中新建相应的字段,本例以linktypeid为例。

2、打开\phpcms\modules\admin\templates\category_add.tpl.php文件,在大约82行下添加上:

<tr>
<th>关联的类别:</th>
<td><input type="text" name="info[linktypeid]" id="linktypeid" class="input-text" value=""></td>
</tr>

3、打开\phpcms\modules\admin\templates\category_edit.tpl.php文件,在大约72行下添加上:

<tr>
<th>关联的类别:</th>
<td><input type="text" name="info[linktypeid]" id="linktypeid" class="input-text" value="<?php echo $linktypeid;?>"></td>
</tr>

然后,,,就没有然后了,,然后就结束了。。

Top