Table of Contents
1. Backend settings
2. Template file modification
3. Front page display
4. Other precautions
Home Backend Development PHP Tutorial Detailed explanation of setting method of dedecms hidden column

Detailed explanation of setting method of dedecms hidden column

Mar 15, 2024 am 09:06 AM
dedecms Setting method Hide column

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.

1. Backend settings

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".

2. Template file modification

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>
Copy after login

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.

3. Front page display

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.

4. Other precautions

  • When modifying the template file, it is recommended to back up the original file to avoid errors that cannot be restored.
  • When you need to restore a hidden column, just change the setting in the first step to "Yes" to display the column in the front desk again.

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!

Statement of this Website
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

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

How to set the picture and sound for Douyin Live Companion - How to set the picture and sound for Douyin Live Companion How to set the picture and sound for Douyin Live Companion - How to set the picture and sound for Douyin Live Companion Mar 04, 2024 pm 02:10 PM

I believe that all the users here like to use the Douyin Live Companion software, but do you know how to set the picture and sound of the Douyin Live Companion? The following article brings you how to set the picture and sound of the Douyin Live Companion, so that you can Let’s take a look below. First, click the "gear" icon in the upper right corner to enter the settings options. Next, the editor will introduce "Image Quality Settings" and "Advanced Settings" one by one. Please see the diagram below. 2. The image quality setting function can help users adjust the image quality, bit rate, frame rate and resolution during live broadcast. The software has already adjusted the settings according to the user's own computer configuration, and in most cases there is no need to change it. , as shown in the figure below: 3. The advanced setting function has relatively more content that can be changed, including sound effect settings.

How to set OPPO11 lock screen password How to set OPPO11 lock screen password Mar 22, 2024 am 11:06 AM

Title: How to set OPPO11 lock screen password Modern mobile phones are no longer just communication tools, but also an indispensable and important device in our daily lives. In order to protect the security of private information and data on your phone, it is crucial to set a safe and reliable lock screen password. For users of OPPO11 mobile phones, how to correctly set the lock screen password has become an essential skill. The following will introduce how to set the OPPO11 lock screen password to help you protect your phone privacy and data security. First, open the OPPO11 phone

How to set up Amap driver interconnection_How to set up Amap driver interconnection How to set up Amap driver interconnection_How to set up Amap driver interconnection Apr 01, 2024 pm 05:16 PM

1. Open the Amap APP and click [More Tools] on the [My] page. 2. Click [Handcar Internet] in the [Service] column. 3. Click [Scan] and scan the QR code on the car version of Amap to complete the connection.

Where is the imperial cms resource network template? Where is the imperial cms resource network template? Apr 17, 2024 am 10:00 AM

Empire CMS template download location: Official template download: https://www.phome.net/template/ Third-party template website: https://www.dedecms.com/diy/https://www.0978.com.cn /https://www.jiaocheng.com/Installation method: Download template Unzip template Upload template Select template

Setting methods and precautions for MySQL composite primary key Setting methods and precautions for MySQL composite primary key Mar 15, 2024 pm 05:45 PM

Setting methods and precautions for MySQL composite primary key In the MySQL database, the primary key is a field or combination of fields used to uniquely identify each record in the table. In addition to setting a single field as a primary key, you can also set a combination of multiple fields as a composite primary key. This article will introduce the setting method, usage scenarios and precautions of composite primary keys in MySQL, and attach specific code examples. How to set a composite primary key: When creating a table, you can set a composite primary key through the following syntax: CREATETABLEta

How to use dedecms How to use dedecms Apr 16, 2024 pm 12:15 PM

Dedecms is an open source Chinese CMS system that provides content management, template system and security protection. The specific usage includes the following steps: 1. Install Dedecms. 2. Configure the database. 3. Log in to the management interface. 4. Create content. 5. Set up the template. 6. Manage users. 7. Maintain the system.

Introduction to the setting method of win10 compatible with win7 Introduction to the setting method of win10 compatible with win7 Jan 03, 2024 pm 05:09 PM

The reason why many friends are still choosing win7 system instead of win10 system is that they are afraid of poor compatibility. In fact, win10 system can now set the compatibility mode of win7. You only need to change the settings in the properties. Let’s take a look at it together. How to make win10 compatible with win71? First, right-click on the program we need to run under win7 system, then open "Properties" 2, then click "Compatibility" above to enter the compatibility tab. 3. Check "Run this program in compatibility mode" in compatibility mode. 4. Then select "Windows 7" from the drop-down menu below. 5. After finishing, just click "Apply" or click "OK".

Accurate and reliable dedecms conversion tool evaluation report Accurate and reliable dedecms conversion tool evaluation report Mar 12, 2024 pm 07:03 PM

Accurate and reliable dedecms conversion tool evaluation report With the rapid development of the Internet era, website construction has become one of the necessary tools for many companies and individuals. In website construction, using a content management system (CMS) can manage website content and functions more conveniently and efficiently. Among them, dedecms, as a well-known CMS system, is widely used in various website construction projects. However, sometimes we are faced with the need to convert the dedecms website to other formats, in which case we need to use a conversion tool

See all articles