Home >CMS Tutorial >Empire CMS >How does Imperial CMS hide the contents of the specified information database at the front desk?
By modifying the field permissions in the Empire CMS database, you can hide the specified information database content. The specific steps include: logging in to the database management system. Open the phome_enewsmodel table. Locate the fields to hide. Update field permissions, setting isadd and isshow to 0. save Changes.
How to hide the content of the specified information database at the front desk of Empire CMS
Hide method:
By modifying the field permissions in the Empire CMS database, the specified information database content can be hidden.
Detailed steps:
phome_enewsmodel
Table: This table stores column model information. id
. <code class="sql">UPDATE `phome_enewsmodelfield` SET `isadd` = 0, `isshow` = 0 WHERE `f` = '栏目字段名称' AND `mid` = 栏目ID;</code>
Description:
The field permission value is:
isadd
: 0 means hiding the field when adding isshow
: 0 means hiding the field when showing f
For the name of the field to be hidden, replace mid
with the column ID. Example:
Suppose you want to hide the content of the author
field in the newsmodel
column, then the SQL statement is as follows :
<code class="sql">UPDATE `phome_enewsmodelfield` SET `isadd` = 0, `isshow` = 0 WHERE `f` = 'author' AND `mid` = 1;</code>
The above is the detailed content of How does Imperial CMS hide the contents of the specified information database at the front desk?. For more information, please follow other related articles on the PHP Chinese website!