Home > Article > CMS Tutorial > How to hide the foreground information content in Empire CMS
Steps for Imperial CMS to hide front-end information content
Step 1: Modify the configuration file
/e/config/config.php
file. public_r
variable and set its value to 0
. Step 2: Modify the template file
/e/data/template/ default/article.htm
). <code class="html">[!ifglobal.islogin==1] <div>[!field.content!]</div> [!else] <div>[!field.shorttitle!]</div> [!endif]</code>
[!field.content!]
with [!field.shorttitle!]
. Step 3: Clear cache
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!