Home  >  Article  >  CMS Tutorial  >  How to hide the foreground information content in Empire CMS

How to hide the foreground information content in Empire CMS

下次还敢
下次还敢Original
2024-04-17 02:36:241000browse

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 to 0.
  • 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:
<code class="html">[!ifglobal.islogin==1]
<div>[!field.content!]</div>
[!else]
<div>[!field.shorttitle!]</div>
[!endif]</code>
  • 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!

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
Previous article:How to use empire cmsNext article:How to use empire cms