Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The method of revising the list of special articles in dream weaving article system

2025-03-30 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly introduces the method of weaving dream article system to modify the list of special articles, which has certain reference value and can be used for reference by friends who need it. I hope you will learn a lot after reading this article. Next, let the editor take you to learn about it.

Dream weaving article system how to modify the list of feature articles?

The template for the list of articles is as follows

If no special settings are made, the list of articles for the project is displayed by default using the article_spec.htm file under default as a template.

This template file is very simple, the front is some information about the topic, the following is the split line, below the split line is the real node and the module of the node article.

This module is supposed to be the most important part of the theme template, but only the following lines:

{dede:field.note/}

< /div>

It's really unexpected-how can you change it? you can't even see the html tag. Although dissatisfied, but since the use of dedecms, this is the only way, perhaps the author is hoping to reduce the workload of users, it is understandable.

To flexibly modify the style of the node article displayed on this page, I have thought of two ways:

How to view the html code directly when the page is displayed in the browser.

No matter how you do it in the background, what is displayed on the browser is the final result. So I just need to look at your final html code, see which html elements are used, and write the css of the relevant elements in the stylesheet. Here are a little tips, with firefox firebug can easily complete this work, as for how to use, here do not explain, you can directly Baidu.

Node name

Node article list

After knowing this, it should not be difficult to modify the style.

Although the method of appeal is not troublesome, it always feels inflexible. Then let's look directly at the source code and modify it at will.

The php file that handles the thematic topic call tag {dede:field.note/} is include/taglib/channel/specialtopic.lib.php.

Find the fifth line of the ch_specialtopic () function

$tempStr = GetSysTemplets ('channel_spec_note.htm')

You can see here that the channel_spec_note.htm file determines the node and the display of the node article.

The channel_spec_note.htm file is placed in the system template file, templets/system/channel_spec_note.htm

When we open the file, we find that the html code in it is almost exactly the same as what we saw in the browser:

~ notename~

~ spec_arclist~

In the actual run time, notename will be replaced with the node name, ~ spec_arclist~

Will be replaced with a node article hyperlink. ~ spec_arclist~ is actually a string, such as

Article hyperlink

Thank you for reading this article carefully. I hope the editor will share the methods and contents of the dream weaving article system to modify the list of special articles. At the same time, I also hope that you can support us, pay attention to the industry information channel, and find out if you encounter problems. Detailed solutions are waiting for you to learn!

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.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report