dede3.1 page Text Collection filtering rules detailed (graphic tutorial) _php Tutorial

Source: Internet
Author: User
The purpose of this paper is to solve the problem of general text paging by simple adaptation and modification based on the sampling rules and filtering rules of a representative text paging.

I. Sample part
Example paging area code:
Example Paging area code:
=700) window.open ('/upload/20074321296309.gif '); "src=" http://www.bkjia.com/uploads/allimg/131016/060F53N3-0.gif "Onload=" if (this.width> ' ") this.width= '"; "border=0>
Sample paging Area Sample code:
Paging area sampling (matching):
=700) window.open ('/upload/20074321298864.gif '); "src=" http://www.bkjia.com/uploads/allimg/131016/ 060f52001-1.gif "onload=" if (this.width> ') this.width= '; "border=0>

Example paging content filtering rules:
paging Content filtering rules:
=700) window.open ('/upload/20074321298386.gif '); "src=" http://www.bkjia.com/uploads/allimg/131016/060F5B40-2.gif "Onload=" if (this.width> ' ") this.width= '"; "border=0>
Sample Capture Content preview:
Sample Capture Content preview:
=700) window.open ('/upload/20074321298685.gif '); "src=" http://www.bkjia.com/uploads/allimg/131016/ 060f52939-3.gif "onload=" if (this.width> ') this.width= '; "border=0>

Example full code (description: This code for the original based on the changes in the code, the original code version, the direct import after the invalid, so in the Dede forum, many friends said ' directly import people's code can not be used ', it is true):
Output Result: http://wen.soudata.net/html/guizeceshi/caijibiji/20070327/2044_2.html
Compare it with the original: http://www.xiaocao.com/text/class1/class1/200609/text_28623.html
This is the entire code that can be imported into the test:
Copy CodeThe code is as follows:
{!--node basic information--}

{dede:item Name= ' Forum Example _ work Summary _ Success (change)
Imgurl= '/upimg ' imgdir= '. /upimg ' language= ' gb2312 ' typeid= ' 1 ' macthtype= ' string '}
{/dede:item}

{!--Capture list fetch rule--}

{dede:list source= ' var ' sourcetype= ' archives '
varstart= ' varend= '}
{dede:url value= ' http://www.xiaocao.com/text/class1/class1/200609/text_28623.html '} {/dede:url}
{Dede:need} {/dede:need}
{Dede:cannot} {/dede:cannot}
{Dede:linkarea} [var: region] {/dede:linkarea}
{/dede:list}

{!--Web content fetching rules--}

{Dede:art}
{dede:sppage sptype= ' full '}

[1][var: Paging area]{/dede:sppage}

{dede:note field= ' dede_archives.title ' value= ' [var: content] ' comment= ' article title '
isunit= ' isdown= '}

{Dede:match}<title>[var: content]</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= '}

{Dede:match} [var: content]



(.*)
















http://www.bkjia.com/PHPjc/318220.html www.bkjia.com true http://www.bkjia.com/PHPjc/318220.html techarticle This paper aims at a representative text pagination of the sampling rules and filtering rules as a blueprint, through simple modifications and changes to solve the general text paging collection problem one, sample part ...

  • {/dede:match} {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}{/dede:function} {/dede:note} {/dede: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.