在 STL 语言文档中关于 `stl:contents` 部分的[“指定内容组”](https://sscms.com/docs/v7/stl/contents/#group-%E6%8C%87%E5%AE%9A%E5%86%85%E5%AE%B9%E7%BB%84)一节,所述内容组调用方法为 ```html <stl:contents group="内容组"> <stl:contents groupNot="内容组"> ``` 但经过实际测试和阅读[源码](https://github.com/siteserver/cms/blob/814d05958d5ae847e5658ee2d4dd1e9f8131cf52/src/SSCMS.Core/StlParser/Models/StlListBase.cs#L40),发现应该这么调用: ```html <stl:contents groupContent="内容组"> <stl:contents groupContentNot="内容组"> ``` 因为[源码](https://github.com/siteserver/cms/blob/814d05958d5ae847e5658ee2d4dd1e9f8131cf52/src/SSCMS.Core/StlParser/Models/StlListBase.cs#L40)是这么写的: ```cs [StlAttribute(Title = "指定内容组")] public const string GroupContent = nameof(GroupContent); [StlAttribute(Title = "排除内容组")] public const string GroupContentNot = nameof(GroupContentNot); ``` 在 v7.3.1 测试,使用 `groupContent` 能正常渲染内容组下的文章列表,而 `group` 不行。 不知道是不是文档撰写有误,还请核对下。感谢你们的工作!
Activity
lawbc commentedon Jan 1, 2026
group可以的,我刚写的没有问题