siteserver / cms

SS CMS 基于 .NET Core,能够以最低的成本、最少的人力投入在最短的时间内架设一个功能齐全、性能优异、规模庞大并易于维护的网站平台。
https://sscms.com
GNU Affero General Public License v3.0
3.66k stars 1.21k forks source link

栏目自定义字段解析有问题 #2008

Open chen5410178 opened 5 years ago

chen5410178 commented 5 years ago

站点名称:XXXX, 模板类型:栏目模板, 模板名称:系统栏目模板 STL标签:</stl:channel> 未将对象引用设置到对象的实例。

在 SiteServer.CMS.StlParser.StlElement.StlChannel.GetValue(String attributeName, AttributesImpl attributes, Boolean isAddAndNotPostBack, String defaultValue) 在 SiteServer.CMS.StlParser.StlElement.StlChannel.ParseImpl(PageInfo pageInfo, ContextInfo contextInfo, String leftText, String rightText, String type, String formatString, String separator, Int32 startIndex, Int32 length, Int32 wordNum, String ellipsis, String replace, String to, Boolean isClearTags, Boolean isReturnToBr, Boolean isLower, Boolean isUpper, ChannelInfo channel, Int32 channelId) 在 SiteServer.CMS.StlParser.StlElement.StlChannel.Parse(PageInfo pageInfo, ContextInfo contextInfo) 在 SiteServer.CMS.StlParser.Parsers.StlElementParser.ParseStlElement(String stlElement, PageInfo pageInfo, ContextInfo contextInfo)

这个就是解析出来的代码 <img src="/BHWY/upload/images/2019/7/fc238d5d564810b0.png" type="left_top_ico" toplevel="1">
图片解析出来了 ,但是还带了type和toplevel两个字段。

chen5410178 commented 5 years ago

顺便问一下这里是不是废了 官方不回答问题啊!!!

LiuovWeb commented 5 years ago

如果自定义字段有问题,吊不出来图片,可以换种标签掉,就可以了,