Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的网站上有 3 种语言,我正在尝试获取导航链接。
所以从我的首页,我试图让那个页面的孩子。但它询问了一个叫做谓词的东西?
我正在使用这个:
children = currentPage.AncestorOrSelf<Frontpage>().Children();
我如何使用谓词?我只需要首页的孩子,所以我可以建立一个导航。
我曾尝试查看文档,但无法找到解决方案。
所以似乎需要一个 lambda 表达式来对数据进行排序。或者我可以删除()并做 .children 然后我得到孩子。猜猜这是从 v7 到 v8 的变化。