DTcms.Web.UILabelcategory.cs中增加标签
/// <summary> /// 自定义:通过类别name获得类别title /// </summary> /// <param name="name"></param> /// <returns></returns> protected string get_title_by_name(string name) { BLL.channel bll = new BLL.channel(); return bll.GetModel(name).title; }
<a href="<%linkurl("index")%>" title="{site.seo_title}">首页</a>><a href="/<%=channel %>_index.html" title=""> <%=get_title_by_name(channel)%> </a><%=get_category_menu(channel+"_list", category_id)%>