Steps for Imperial CMS to hide front-end information content
Step 1: Modify the configuration file
- Open the root directory of Imperial CMS The
/e/config/config.php
file. - Find the
public_r
variable and set its value to0
. - save Changes.
Step 2: Modify the template file
- Open the template file that needs to hide the information content (for example,
/e/data/template/ default/article.htm
). - Find the following code:
[!ifglobal.islogin==1] <div>[!field.content!]</div> [!else] <div>[!field.shorttitle!]</div> [!endif]
- Replace
[!field.content!]
with[!field.shorttitle!]
. - save Changes.
Step 3: Clear cache
- Log in to the Empire CMS backend.
- Go to "System" -> "Update Cache".
- Click the "Update All" button.
After completing these steps, the front desk will no longer display the information content, but only the title of the article.
The above is the detailed content of How to hide the foreground information content in Empire CMS. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

WebStorm Mac version
Useful JavaScript development tools

Dreamweaver CS6
Visual web development tools

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.

EditPlus Chinese cracked version
Small size, syntax highlighting, does not support code prompt function

Safe Exam Browser
Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.
