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