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!