在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
請告訴我正確的方法是什麼?