在部分视图中使用嵌套内容时,所有部分视图项目都相同 我正在使用 Umbraco 8
All partial views items are the same when using Nested Content in Partial view I'm using Umbraco 8
我正在尝试将 webticker 制作为部分视图,它将从父页面下的文档类型中获取其设置和项目,但所有部分视图都具有与第一个请求相同的嵌套内容项目(所有其他属性工作正常)。
@{
var mainWebticker = Umbraco.Content(Guid.Parse("bae542f8-5769-4eb3-aa39-d5e0b6b675e9"));
}
@Html.Partial("Webticker", mainWebticker)
@{
var webticker2 = Umbraco.Content(Guid.Parse("a6fa8c8e-fd5c-4b4f-b9e0-f324dcc053cc"));
}
@Html.Partial("Webticker", webticker2 )
那我做错了什么?
再次重新创建文档类型解决了问题。这是一个解决方案,但不是为什么会发生这种情况的答案
我正在尝试将 webticker 制作为部分视图,它将从父页面下的文档类型中获取其设置和项目,但所有部分视图都具有与第一个请求相同的嵌套内容项目(所有其他属性工作正常)。
@{
var mainWebticker = Umbraco.Content(Guid.Parse("bae542f8-5769-4eb3-aa39-d5e0b6b675e9"));
}
@Html.Partial("Webticker", mainWebticker)
@{
var webticker2 = Umbraco.Content(Guid.Parse("a6fa8c8e-fd5c-4b4f-b9e0-f324dcc053cc"));
}
@Html.Partial("Webticker", webticker2 )
那我做错了什么?
再次重新创建文档类型解决了问题。这是一个解决方案,但不是为什么会发生这种情况的答案