帝國cms在 新增/編輯 信息時,信息的TAGS屬性隱藏于選項卡【選項設置】中,如果將TAGS放到【基本信息】選項卡中,則可以省時省力又方便管理。如圖:
實現此功能分兩步修改:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | <?php if ( strstr ( $public_r [ 'usetags' ], ',' . $modid . ',' )) { $infotag_readonly = '' ; $infotag_copykeyboard = ' <input type="button" name="Submit3" value="復制關鍵字" onclick="document.add.infotags.value=document.add.keyboard.value;">' ; if ( strstr ( $public_r [ 'chtags' ], ',' . $modid . ',' )) { $infotag_readonly = ' readonly' ; $infotag_copykeyboard = '' ; } ?> <tr> <td height= "25" bgcolor= "#FFFFFF" >TAGS : <input name= "infotags" type= "text" id= "infotags" value= "<?=$r[infotags]?>" size= "32" <?= $infotag_readonly ?>> <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');" > <?= $infotag_copykeyboard ?> <input name= "oldinfotags" type= "hidden" id= "oldinfotags" value= "<?=$r[infotags]?>" > <font color= "#333333" >(多個用 "," 逗號格開)</font></td> </tr> <?php } ?> |
special.field 是系統默認字段,在字段的“輸入表單替換html代碼”中末尾,找到 </table> ,在其上插入第一步中刪除的代碼即可。
注意:所有需使用tag功能的數據表都需要做第二步的修改。
新聞熱點
疑難解答