Add an English column title to the Weave dream call in the Chanel tag

Source: Internet
Author: User

Online a lot of ways to add English column title, we have to Baidu a bit better, but after the change in the Chanel tag is not called, then the solution is as follows:

Want to use in channel, for example:

{dede:channel type= ' son ' row= ' typeid= ' 1 '}                     <li><a href= ' [field:typeurl/] ' >[field:typename/][field:typenameng/]</a></li> {/ Dede:channel}

You also need to modify a file to find the include\taglib\channel.lib.php

First place:if($type= = ' Top ')    {        $sql= "SELECT Id,typename,typenameng,typedir,isdefault,ispart,defaultname,namerule2,moresite,siteurl,sitepath from ' #分隔符 @__arctype ' WHERE reid=0 and ishidden<>1 ORDER by Sortrank ASC limit 0,$line"; }    Else if($type= = ' son ')    {        if($typeid==0)return‘‘; $sql= "SELECT Id,typename,typenameng,typedir,isdefault,ispart,defaultname,namerule2,moresite,siteurl,sitepath from ' #分隔符 @__arctype ' WHERE reid= '$typeid' and ishidden<>1 ORDER by Sortrank ASC limit 0,$line"; }    Else if($type= = ' self ')    {        if($reid==0)return‘‘; $sql= "SELECT Id,typename,typenameng,typedir,isdefault,ispart,defaultname,namerule2,moresite,siteurl,sitepath from ' #分隔符 @__arctype ' WHERE reid= '$reid' and ishidden<>1 ORDER by Sortrank ASC limit 0,$line"; } Second place://If you use sub-column mode, display the sibling column when there are no sub- columns    if($type= = ' son ' &&$reid!=0 &&$totalRow==0)    {        $sql= "SELECT Id,typename,typenameng,typedir,isdefault,ispart,defaultname,namerule2,moresite,siteurl,sitepath from ' #分隔符 @__arctype ' WHERE reid= '$reid' and ishidden<>1 ORDER by Sortrank ASC limit 0,$line"; $dsql->setquery ($sql); $dsql-Execute (); }

Add an English column title to the Weave dream call in the Chanel tag

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.