Current Location: Home> Latest Articles> Detailed Guide on Hiding Columns in DedeCMS

Detailed Guide on Hiding Columns in DedeCMS

M66 2025-07-11

1. Backend Settings

First, log in to the DedeCMS admin panel and go to the column management page. Find the column you want to hide, and click to edit. In the 'Basic Properties' tab, find the option 'Display in site navigation' and set it to 'No'. This ensures the column will not appear in the frontend navigation.

2. Template File Modification

Next, we need to modify the template file to ensure the hidden column does not display in the frontend. This modification is controlled through the template file. Follow these steps:

Find the corresponding column template file, usually located under the /templets/ template directory in your website’s root folder (e.g., /templets/column_template.htm). Open this file and add the following code:

<span class="fun"><dcc:channel typeid='ColumnID' showtype='Start Position, Display Quantity'></span>

In the above code, the 'typeid' parameter refers to the ID of the column to be hidden, and the 'showtype' parameter controls the display method. You can adjust the display quantity and position based on your needs. After making the changes, save the file and update the template cache.

3. Frontend Display

Once the above steps are completed, refresh the frontend page and you will see that the hidden column no longer appears in the site navigation or page. This successfully hides the column from the frontend display.

4. Additional Notes

  • It is recommended to back up the original template file before making modifications, in case you need to revert changes due to errors.
  • If you need to restore the hidden column, simply change the 'Display in site navigation' setting to 'Yes' in the first step, and the column will reappear on the frontend.

Conclusion: With the steps outlined above, you can easily hide unnecessary columns in DedeCMS and optimize your site’s content display and user experience. We hope this article is helpful, and wish you success in building your website!