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}