Home > Article > Backend Development > Detailed explanation of setting method of dedecms hidden column
"Detailed explanation of how to set up DedeCMS hidden columns, specific code examples are required"
In the process of using DedeCMS to build a website, sometimes we need to hide some columns. Site front-end display. This article will introduce in detail the setting method of DedeCMS hidden column and provide specific code examples.
First, we need to log in to the backend management system of DedeCMS. In the column management page, find the column that needs to be hidden, find the "Show in site navigation" option in the "Basic Properties" tab, and set it to "No".
Next, we need to modify the template file. The hidden columns will not be displayed in the front desk. This needs to be controlled by the template file. Find the corresponding column template file (usually located in /templets/template directory/column template file.htm
), and add the following code to the file:
<dcc:channel typeid='栏目ID' showtype='开始位置,显示数量'> // 栏目内容展示代码 </dcc:channel>
In the above code, typeid
is the ID of the hidden column, showtype
is the display mode, which can be set according to needs. After adding the above code, save the file and update the template cache.
After we complete the above settings, refresh the front page and find that the hidden columns are no longer displayed in the site navigation or page.
Summary: Through the above setting method, we can easily hide the columns in DedeCMS that do not need to be displayed in the front desk. I hope the above content is helpful to you, and I wish you good luck in building your website!
The above is a detailed explanation of how to set up hidden columns in DedeCMS. I hope it will be helpful to you.
The above is the detailed content of Detailed explanation of setting method of dedecms hidden column. For more information, please follow other related articles on the PHP Chinese website!