How to realize dedecms Call of friend chain

Source: Internet
Author: User
Keywords Friends Chain

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

Finally to their own figure out, dedecms how to achieve different columns page call different links. Online search for most of the day, are talking about the home page and the separate calls to the column pages. Here to share with you, small trick, why to achieve such a way, the reason is needless to say more.

In fact, the use of object and JavaScript call external files, can also achieve different columns call different links, that is, the equivalent of calling different columns Friendship link file, {Dede:field.typeid/} to get the current column ID. When using this method to call friendship links belong to friend chain spoofing, not recommended. DEDECMS tags can not be applied (except Channelartlist), which brings trouble to the implementation, but there is a tag to help, the SQL tag, the specific operation is as follows:

1, backstage-core-website column management, record column name and column ID.

  

2, backstage-module-links-site type management, edit the site type, so that the site type name, ID and column name, ID to maintain consistent.

  

3, in the column template, write the following code: {dede:sql sql= "select Url,webname from dede_flink where id = (SELECT id from Dede_flinktype where Typen ame=~typename~) "}<a href=" [field:url/] ">[field:webname/]</a>{/dede:sql}"

4, as for the homepage link, you may add a "homepage" directly in the website type management, then in the homepage template directly plus typeid= ' website type ID '

It's easy, but it's Leng on the Internet. This kind of situation is suitable for the site of the column not many use, if many of it appears some stupid, through the PHP two development also can realize. Here simple share with everyone, backup. This article by the merchants to join Www.zsw365.com Original, reproduced please indicate the source, thank you!

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.