In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-03 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Editor to share with you the method of modifying the dedecms system class single-column template, I believe that most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!
How to modify the single column template of dedecms system?
We should all have article_article.htm template in our template; there is a call {dede:field.body/} in article_article.htm template, which calls news data by default (understood for the time being), meaning that you can use {dede:field.content/} to call the content you fill in the following edit box, such as enterprise profile.
We should have the template of article_article.htm in our template, which is the template of the content page of the article, that is to say, the final display page of all articles on the site is rendered by this template.
But the problem is that there is a call {dede:field.body/} in the article_article.htm template, which calls news data by default (as understood for the time being), and our corporate profile cannot appear on the website in the mode of news, so dream-weaving officials take this into account and say this in the (find the right path) column Management > modify column > > column (omit 10,000 words here). It means that you can use {dede:field.content/} to invoke the content you next fill in the edit box below, that is, the content of a single page such as an enterprise profile.
Then we can open the article_article.htm template and find {dede:field.body/} to replace him with {dede:field.content/}. Of course, there is another step. To change the name of article_article.htm, the default is index_article.htm, which will save other troubles. Many people will ask, then I changed the name of the article_article.htm template, then how to use my ordinary news page? Rest assured, there is a function you do not know, that is, after you change the name, the dream weaving system will create a modified template and retain the original template, so feel free to change it boldly. Nothing.
Next, we are going to show you all the steps above.
Step 1: create a new single-page template, and be sure to choose the channel cover below.
In the advanced options, you can see why I just asked you to change the name of the new template to index_article.htm. If you select the channel cover in the previous step, the system will use the cover template by default, and the default cover template name is index_article.htm.
Step 2: open the article_article.htm template, find {dede:field.body/} and change it to {dede:field.content/}. At the same time, modify the template name as shown in the figure below (nothing else needs to be changed, except in extremely special cases).
After modifying and saving, you will find that you have an extra template, which is your single-page template.
[another note: many of the cover page templates are named singlepage.htm or about our cover page template may be about.htm contact our cover page template may be contact.htm, this kind of phenomenon belongs to the general naming rules and personality naming rules, if it is not clear, you can see the code to judge]
OK you can now go to column Management > modify column > > column content edit box to fill your content, and then save and generate, refresh, and you are done.
The above are all the contents of the method of modifying the single-column template of the dedecms system, thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.