dede5.7 template Dede31 Page Text collection filter rules detailed illustration of the tutorial continued four

Source: Internet
Author: User
This completes the paging content match.
After the article content matches, the page content matches all finishes, finally only then "filters", including the paging area filtering and the article content filtering. According to my feelings, the above two rules are good to write, as long as you find all the links in the "unique" code to do, but the filter rules are to say also Hugh, Tao endless Mystery ... Haha, that's how it feels. Especially as my general novice, to "regular" this thing such as the Heavenly book, find a few regular aspects of the software bar still feel unable to do, it had to according to sample painting, Tiger, according to gourd painting scoop to grope.
All right, gossip. Also tired, listen to the "California Hotel" bar, in this: California Hotel-Eagle Band 94 Live relax.
You look out of the filter rules how to write, anyway I was not able to see, no way, novice is a novice ah. Regardless of it, then follow the original example of the page filter rules to write a rule try to see the results of it:

Copy the Code code as follows:


{Dede:trim} (. *) page time {/dede:trim}


Collect:

Pagination success, but the scrap code more, still have to change!
Look at the extra code features, as if the filter range is not enough, behind a lot of content to be filtered out. Well, the filter area back to move directly to the understandriginally part of it (in fact, I change the filter rules, changed several times, here on one place, do not delay the time of friends):

Write a full paging filter rule:

Copy the Code code as follows:


{Dede:trim} (.*) {/dede:trim}


Then take a look at the results:

OK, paging succeeds, no extra code. At this point, all the main pieces of code are completed.
The results are here:
There are pagination: the party member cadres of the style of rectification analysis materials
No paging: Work plan of the Ministry of Literature and Art
Write a completed site rule:

Copy the Code code as follows:


{!--node basic information--}
{Dede:item Name= ' Tianshui _ Work plan _1 page '
Imgurl= '/upimg ' imgdir= '. /upimg ' language= ' gb2312 ' typeid= ' 1 ' macthtype= ' string '}
{/dede:item}
{!--Capture list fetch rule--}
{dede:list source= ' var ' sourcetype= ' list '
varstart= ' varend= '}
{dede:url value= ' http://www.tiansou.net/Html/Y_CYFW/R_Gzzj/F_Gzjh/index.html '} {/dede:url}
{Dede:need} Gzjh/2007-{/dede:need}
{Dede:cannot} Gzjh/2007-1{/dede:cannot}
{Dede:linkarea} [var: region] {/dede:linkarea}
{/dede:list}
{!--Web content fetching rules--}
{Dede:art}
{dede:sppage sptype= ' full '}First Prev [var: Paging area] page {/dede:sppage}
{dede:note field= ' dede_archives.title ' value= ' [var: content] ' comment= ' article title '
isunit= ' isdown= '}
{Dede:match}<title>[var: content]--Tianshui Search</title>{/dede:match}
{Dede:function} {/dede:function}
{/dede:note}
{dede:note field= ' dede_archives.sortrank ' value= ' [var: content] ' comment= ' sort level '
isunit= ' isdown= '}
{Dede:match} {/dede:match}
{dede:function} @me = time (); {/dede:function}
{/dede:note}
{dede:note field= ' dede_archives.writer ' value= ' [var: content] ' comment= ' article author '
isunit= ' isdown= '}
{Dede:match} {/dede:match}
{Dede:function} {/dede:function}
{/dede:note}
{dede:note field= ' dede_archives.litpic ' value= ' [var: content] ' comment= ' thumbnail '
isunit= ' isdown= '}
{Dede:match} {/dede:match}
{dede:function} @me = @litpic; {/dede:function}
{/dede:note}
{dede:note field= ' dede_archives.pubdate ' value= ' [var: content] ' comment= ' release time '
isunit= ' isdown= '}
{Dede:match} {/dede:match}
{dede:function}if (@me! = "") @me = Getmktime (@me);
else @me = time (); {/dede:function}
{/dede:note}
{dede:note field= ' dede_archives.senddate ' value= ' [var: content] ' comment= ' entry time '
isunit= ' isdown= '}
{Dede:match} {/dede:match}
{dede:function} @me = time (); {/dede:function}
{/dede:note}
{dede:note field= ' dede_addonarticle.body ' value= ' [var: content] ' comment= ' article content '
isunit= ' 1 ' isdown= ' 1 '}
{Dede:match}




[var: content]



{/dede:match}
{Dede:trim}(.*){/dede:trim}
{Dede:trim}
{/dede:trim}
{Dede:trim} ]*) >{/dede:trim}
{Dede:trim} ]*) > ([^>]*){/dede:trim}
{Dede:trim} ]*) >{/dede:trim}
{Dede:trim}{/dede:trim}
{Dede:trim} ]*) > ([^>]*){/dede:trim}
{Dede:trim} ]*) >{/dede:trim}
{Dede:trim}{/dede:trim}
{Dede:trim} ]*) > ([^>]*){/dede:trim}
{Dede:trim} ]*) >{/dede:trim}
{Dede:trim}{/dede:trim}
{Dede:trim} {/dede:trim}
{Dede:trim} {/dede:trim}
{Dede:trim} {/dede:trim}
{Dede:trim} {/dede:trim}
{Dede:trim}] *) > ([^<]*) {/dede:trim}
{Dede:trim}] *) >{/dede:trim}
{Dede:trim} {/dede:trim}
{Dede:trim}] *) >{/dede:trim}
{Dede:trim}] *) > ([^<]*) {/dede:trim}
{Dede:trim}] *) >{/dede:trim}
{Dede:trim} {/dede:trim}
{Dede:trim} ]*) > ([^>]*){/dede:trim}
{Dede:trim} ]*) >{/dede:trim}
{Dede:trim}{/dede:trim}
{Dede:trim} ]*) > ([^>]*) {/dede:trim}
{Dede:trim} ]*) >{/dede:trim}
{Dede:trim}{/dede:trim}
{Dede:trim} ]*) > ([^>]*] {/dede:trim}
{Dede:trim}{/dede:trim}
{Dede:trim}{/de De:trim}
{Dede:trim}
]*) > ([^>]*) {/dede:trim} {Dede:trim}











The above describes the dede5.7 template dede31 page text collection filtering rules in detail, four, including the dede5.7 template aspects of the content, I hope that the PHP tutorial interested in a friend helpful.

  • ]* ) >{/dede:trim} {Dede:trim}{/dede:trim} {Dede:trim} {/dede:trim} {dede:function}{/dede: function} {/dede:note} {dede:note field= ' dede_archives.source ' value= ' [var: content] ' comment= ' article source ' isunit= ' isdown= '} {Dede:match}{/dede:match} {dede:function} @me = ' internet ' {/dede:function} {/dede:note} {/de De:art}

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.