Home >
Article > Backend Development > dede5.7 template dede31 paging text collection filtering rules detailed graphic tutorial continued four
dede5.7 template dede31 paging text collection filtering rules detailed graphic tutorial continued four
WBOYOriginal
2016-07-29 08:36:511297browse
At this point, the paging content matching is completed. After article content matching and paging content matching are completed, there is only "filtering" in the end, including paging area filtering and article content filtering. According to my own feeling, the above two rules are easy to write. As long as you find the "uniqueness" code in all links, you can get it done. However, there are endless mysteries in the filtering rules that I can't explain... Haha, it feels like That's it. Especially for a novice like me, the word "regularity" is like a book from heaven. I searched for several regularity-related software and still found it impossible to start, so I had to follow the same pattern, imitate the cat and the tiger, and fumble around. Okay, enough gossip. If you are tired, just listen to "Hotel California" and relax here: Hotel California_Eagles 94 Live. Have you figured out how to write the filtering rules at a glance? Anyway, I couldn’t figure it out. I can’t help it. A novice is a novice. Ignore it, then write a rule according to the original example of paging filtering rules and try it to see the result:
Copy the code The code is as follows:
{dede:trim}
(.*) Page{/dede:trim}
Collect it:
Paging is successful, but there are many waste codes and need to be changed! Look at the redundant code features, it seems to be The filtering scope is not enough, and a lot of subsequent content needs to be filtered out. Well, move the filtering area further back, directly to the red part (in fact, when I changed the filtering rules, I changed it several times, so I’ll just do it here once, so as not to waste my friends’ time):
Write a complete paging filtering rule:
Copy the code The code is as follows:
{dede:trim}
(.*)
{/dede:trim}
Collect it again and see the results:
Okay, paging is successful, no redundant code. At this point, all the main code parts are completed. The results are here: With pagination: Materials for rectification and analysis of the style of party members and cadres Without pagination: Work plan of the Ministry of Literature and Art Write a completed site rule:
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