Dede3.1 paging text collection and filtering rules (graphic tutorial) _ php skills

Source: Internet
Author: User
Dede3.1 detailed description of paging text collection and filtering rules (graphic tutorial) This article aims to use a representative text paging sampling rules and filtering rules as a blueprint, through simple change and modification, solve the problem of collecting general text pagination

I. Examples
Sample paging area code:
Sample paging area code:
= 700) window. open ('/upload/20074321296309.gif'); "src =" http://files.jb51.net/upload/20074321296309.gif "onload =" if (this. width> '200') this. width = '000000'; "border = 0>
Sample paging area sampling code:
Paging area sampling (matching ):
= 700) window. open ('/upload/20074321298864.gif'); "src =" http://files.jb51.net/upload/20074321298864.gif "onload =" if (this. width> '200') this. width = '000000'; "border = 0>

Sample paging content filtering rules:
Paging content filtering rules:
= 700) window. open ('/upload/20074321298386.gif'); "src =" http://files.jb51.net/upload/20074321298386.gif "onload =" if (this. width> '200') this. width = '000000'; "border = 0>
Sample content preview:
Sample content preview:
= 700) window. open ('/upload/20074321298685.gif'); "src =" http://files.jb51.net/upload/20074321298685.gif "onload =" if (this. width> '200') this. width = '000000'; "border = 0>

Full sample code (note: This code is the changed code on the original basis. The original code version is different and is invalid after direct import, therefore, many friends in the dede Forum said, 'The code that can be directly imported into others' ID', which is true ):
Output result: http://wen.soudata.net/html/guizeceshi/caijibiji/20070327/2044_2.html
Compare with the original article: http://www.xiaocao.com/text/class1/class1/200609/text_28623.html
This is all the code. you can import it as follows:

The code is as follows:


{! -- Basic node information --}

{Dede: item name = 'forum example_work summary_success (change )'
Imgurl = '/upimg' imgdir = '../upimg' language = 'gb2312 'typeid = '1' macthtype = 'string '}
{/Dede: item}

{! -- Collection list acquisition rules --}

{Dede: list source = 'var' sourcetype = 'archivees'
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}

{! -- Webpage content retrieval 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}[Var: content]{/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. write' value = '[var: content] 'Comment = 'author'
Isunit = ''isdown = ''}

{Dede: match} {/dede: match}

{Dede: function} {/dede: function}

{/Dede: note}

{Dede: note field = 'dede _ archives. litpic 'value =' [var: content] 'Comment = 'thumbnails'
Isunit = ''isdown = ''}

{Dede: match} {/dede: match}

{Dede: function} @ me = @ litpic; {/dede: function}

{/Dede: note}

{Dede: note field = 'dede _ archives. pubdat' value = '[var: content] 'Comment = 'publication 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}

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.