简体   繁体   中英

All partial views items are the same when using Nested Content in Partial view I'm using Umbraco 8

I'm trying to make a webticker as a partial view which will take its settings and items from a document type under the parent page but all partial views has the same nested content items as the first request (all other properties are working fine).

@{
    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 )

So what am I doing wrong?

Recreating the doc type again solved the problem. This is a solution but not the answer for why is that happening

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM