Home >CMS Tutorial >Empire CMS >How does Imperial CMS hide the contents of the specified information database at the front desk?

How does Imperial CMS hide the contents of the specified information database at the front desk?

下次还敢
下次还敢Original
2024-04-17 02:48:16397browse

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 does Imperial CMS hide the contents of the specified information database at the front desk?

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:

  1. Log in to the database management system: Use MySQL or other database management tools to log in to the database used by Empire CMS.
  2. Open phome_enewsmodel Table: This table stores column model information.
  3. Locate the field to be hidden: Find the column ID of the field that contains the information to be hidden, such as id.
  4. Update field permissions: Use the following SQL statement to update field permissions:
<code class="sql">UPDATE `phome_enewsmodelfield` 
SET `isadd` = 0, `isshow` = 0
WHERE `f` = '栏目字段名称' AND `mid` = 栏目ID;</code>
  1. Save changes: Save the updated database surface.

Description:

  • The field permission value is:

    • isadd : 0 means hiding the field when adding
    • isshow: 0 means hiding the field when showing
  • Make sure to replace 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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn