Skip to content

文档中关于“内容组”调用部分可能有误 #3868

@Hsiao-Feng

Description

@Hsiao-Feng

在 STL 语言文档中关于 stl:contents 部分的“指定内容组”一节,所述内容组调用方法为

<stl:contents group="内容组">
<stl:contents groupNot="内容组">

但经过实际测试和阅读源码,发现应该这么调用:

<stl:contents groupContent="内容组">
<stl:contents groupContentNot="内容组">

因为源码是这么写的:

[StlAttribute(Title = "指定内容组")]
public const string GroupContent = nameof(GroupContent);

[StlAttribute(Title = "排除内容组")]
public const string GroupContentNot = nameof(GroupContentNot);

在 v7.3.1 测试,使用 groupContent 能正常渲染内容组下的文章列表,而 group 不行。

不知道是不是文档撰写有误,还请核对下。感谢你们的工作!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions