If you have a large number of pages on your site, it is very troublesome to manually create a navigation bar.
The Content Linking setting can help you a lot (of course not the more helpful), as long as you update your existing
The text file of the webpage URL, then it can automatically update the navigation link based on your text file.
Content Linking creates a Nextlink object for managing navigation links. The Content Linking component must be used,
You must first create a Content Linking List text file. Content Linking reads this file
Obtain the information of all pages that we want to link.
The format of the Content Linking List file is as follows:
URL description line comment
The URL is of course the URL related to the page, and the "description line" is displayed when the hyperlink is displayed.
Text information, followed by the "comment" is not used.
The following describes how to use the Content Linking component:
<Html>
<Head>
<Meta http-equiv = "Content-Type" content = "text/html; charset = gb2312">
<Title> Content Linking component instance </title>
</Head>
<Body>
<Center> <font color = red> use the Content Linking component instance </font> </center>
<Ul>
<%
Set Link = Server. CreateObject ("MSWC. NextLink ")
Lcount = Link. GetListCount ("conlink.txt ")
Dim I
For I = 1 to lcount
<Li> <a href = "<% = Link. GetNthURL (" conlink.txt ", I) %>"> <% = Link. GetNt
HDescription ("conlink.txt", I) %> </a>
<% Next %>
</Ul>
</Body>
</Html>
In the previous example, first use getlistcounttoken to determine how many hyperchains are in the file conlink.txt, and then use
Cycle, and use getnthurl1_getnthdescriptionparts to store them in the conlink.txt file one by one.
The URL and text information are read and displayed to the client browser.
Method of the Content Linking component:
GetListCount (file) counts the number of superlinks
GetNextURL (file) gets the URL of the next page
Getpreviusdescription (file) gets the description line of the previous page
GetListIndex (file) gets the index of the current page
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