0

我正在使用标准DocumentHelper.GetDocuments来查找页面,对于顶级页面,.WhereEquals("NodeAlias", pageAlias)它工作正常,其中 pageAlias 与“测试页面”一致。

一旦我开始解析子页面(所以pageAlias = "Test-Page/Another-Page") DocumentHelper 正在返回null

我想知道我是否可以以某种方式在 C# 中看到页面的 NodeAlias?这应该允许我更好地映射页面。

4

1 回答 1

1

“NodeAlias”通常只是页面的 URL 友好别名 - 例如“Another-page”。我相信您可能正在寻找“NodeAliasPath”,它将为您提供完整的别名路径 - “/Test-Page/Another-Page”

于 2019-08-09T16:36:53.237 回答