Empire CMS Collection Graphics and text tutorial (middle)

Source: Internet
Author: User

Intermediary transaction http://www.aliyun.com/zixun/aggregation/6858.html ">seo diagnose Taobao guest cloud host technology Hall

On the last talk we introduced the Imperial CMS Acquisition Basic process, then we introduce the Empire CMS how to collect content paging. A lot of students in the collection process, list pages and content pages can be very good to set the regular, but often failed in the content page is regular, mainly on the content pagination is not understand. The content of the Empire there are two types of pagination: (1) all listed (2) Up and down page navigation, but what is the difference between the two forms of content paging, when the content of the page to be used, the official said more vague, some students feel very big, good, we first look at the example:

List of all

All listings simply look at the page's HTML code on the first page, and all the page links are listed.

1, we take "Chinese web content Pagination (http://auto.china.com/dongtai/yejie/11012724/20120309/17081442.html)" As an example:

  

You can see that the news has a total of 3 pagination.

2, view the source code:

  

In addition to the 1th page that has been collected in this page, the 2nd and 3rd pages are included, and all the pagination is listed.

3. Get the paging area regular ([!--smallpageallzz--]):

  

4. Get pagination link Regular ([!--pageallzz--]):

  

Two, up and down page navigation type

Up and down page navigation is the difficulty of paging collection, he needs all pages are in line with the page, in unfamiliar circumstances, we can use the 1th and 2nd pages of the code to compare and analyze and then determine the paging regular.

1, we take "Alice content page (http://fashion.aili.com/76/445845.html)" As an example:

  

You can see that the news has a total of 20 pagination.

2, view the source code:

  

On this page, in addition to the 1th page that has been collected, also includes the 2nd, 3rd, 4th, 5th, 6th, 7th, 8th, 20th page, but the 9th to 19th page is not listed, at this time we take the 1th page and the 2nd page of the Code for comparative analysis, to determine the pagination is:

(1) 1th page code:

  

(2) 2nd page code:

  

From these two pictures you can see that they have the same "pagination area start Code", "Pagination link" format, "pagination area end Code", then you can determine "page area regular", "pagination link regular".

3. Get the paging area regular ([!--smallpageallzz--]):

  

4. Get pagination link Regular ([!--pageallzz--]):

  

5, in order to facilitate the tutorial display, Newstext I collected the title rather than the collection content, the preview result:

  

Note:

First, in the first page of the page HTML code, the content pagination link all listed in the case we use "all listed". In the first page of the page HTML code, the content page links are not all listed in the case we use "up and down page navigation."

Second, when using all the lists, the collection rules are correct but inexplicably appear duplicate pagination, then you can use the substitution method to filter it out (the next we say).

Third, use the upper and lower pages of navigation, always pick the 1th page, the other page even a shadow has not seen, this is because the paging area is ([!--smallpagezz--]) intercept errors.

Four, with the page navigation, you can collect the first few pages, but then the first few pages of all repeat cycle in the end, this is because the paging area is ([!--smallpagezz--]) intercept errors, interception range too large, resulting in repeated interception of the first few page links.

OK, here we go, next we'll introduce the Imperial CMS Collection filter and replace.

This article by the foreign website Daquan http://www.kguowai.com/Original, reprint please indicate the source, thank you!

Empire CMS Collection Graphics and text tutorial (i)

Related Article

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.