在Umbraco 7解决方案中,我在所有页面上都有一个Tags内容选择器。页面可以用这个,在每个页面上设置标签。查找标签页
然后,我想要在包装网站中获取包含标签111(id,not name)的alle页面。
我曾尝试用:
var ids = Model.MacroParameters["tags"]; //the tags to show
CurrentPage.AncestorOrSelf(1).Descendants().Where(x => ids.Contains(x.tags.ToString()));
但是,这给我的错误:
Cannot use a lambda expression as an argument to a dynamically dispatched operation without first casting it to a delegate or expression tree type
请告诉我正确的方法是什么?