查看tidb源代码:::util/charset/charset.go,下面有段代码: // GetAllCharsets gets all charset descriptions in the local charsets. func GetAllCharsets() []*Desc { descs := make([]*Desc, , len(charsets)) // The charsetInfos is an array, so the iterate order will be s
在制作织梦模板的时候,有的时候我们需要调用文章部分内容,用[field:description/]标签字数不够多(数据库设计字段是varchar(255)的),另外修改了文章内容但是摘要还需要手动修改,所以只能调用文章正文内容了. 实现织梦DedeCMS列表页调用文章正文的方法有两种,不过都是使用的dede:arclist标签,如果使用dede:list标签的话,第一种方法是调用不出结果的. 以下是织梦DedeCMS列表页调用文章正文的第一种方法: {dede:arclist flag
首先找到网站目录/inc/AspCms_MainClass.asp 增加主函数 Public Function parseSlideList(str) if not isExistStr(content,"{aspcms:"&str&"slidelist") then Exit Function dim match,matches,matchfield,matchesfield dim labelAttrLinklist,loopstrLinklis