Kentico v5.5 C# 获取文档
我试图获取基于aliasPath的文档,这是整个aliasPath,我试图获取/PPIS/Vic-Residential/SERE26,但我不想对整个路径进行硬编码,我只想使用最后一点,如下所示“?/SERE26”我已经尝试了所有组合,但找不到以结尾的正确通配符语句。
CMS.TreeEngine.TreeNode nodeCur = TreeHelper.GetDocument(CMSContext.CurrentSiteName,
"/PPIS/Vic-Residential/SERE26", "en-au", true, "CMS.MenuItem", false);
Im trying to get a document based on the aliasPath this is the whole aliasPath im trying to get /PPIS/Vic-Residential/SERE26 but i don't want to hard code the whole path i just want to use the last bit something like this "?/SERE26" Ive tried all combinations and cant find the correct wildcard statement for ends with.
CMS.TreeEngine.TreeNode nodeCur = TreeHelper.GetDocument(CMSContext.CurrentSiteName,
"/PPIS/Vic-Residential/SERE26", "en-au", true, "CMS.MenuItem", false);
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
为此,您可以使用 % 字符来覆盖任意数量的字符:
http://devnet. kentico.com/docs/devguide/appendix_b___path_expressions.htm
You can use % character for this purpose that covers any number of characters:
http://devnet.kentico.com/docs/devguide/appendix_b___path_expressions.htm