Phpcms: V9 link label instructions

Source: Internet
Author: User

Call description of the PC label of the link module

Module name: Link

Available operations provided by the module

Operation name Description
Type_list Get Link List

Get the Link List (type_list ):

Available parameters:

Parameter Name Required? Default Value Description
Siteid Yes Null Current site ID
Linktype Yes 1 Display Mode
Order Yes Listorder DESC Sorting Method
Typeid No Null CATEGORY ID

Code example:

{PC: link action = "type_list" typeid = "4" siteid = "1" linktype = "1" Order = "listorder DESC" num = "8" return = "pic_link "}

{Loop $ pic_link $ v}

<Li> <a href = "{$ V ['url']}" Title = "{$ V ['name']}" target = "_ blank"> </a> </LI>

{/Loop}

{/PC}

In the above example, all the links with the site Id 1 and Category ID 4 are output.

Field Type Null Default Note
ID INT (10) No 0 Favorite ID
Linkid INT (10) No 0 Friendship link ID
Siteid Mediumint (8) No 0 Site ID
Typeid Smallint (5) No   CATEGORY ID
Linktype Tinyint (1) No 0 Link form
Name Varchar (50) No 0 Website name
URL Char (255) No 0 Website URL
Logo Varchar (255) No 0 Logo address
Introduce Text (0) Yes 0 Website Introduction
Username Varchar (30) Yes 0 Website contact
Listorder Smallint (5) No 0 Sort Value
Elite Tinyint (1) Yes 0 Recommended or not
Passed Tinyint (1) No 1 Approved?
Addtime INT (10) No 0 Time added

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.