November Happy Hour will be moved to Thursday December 5th.
November Happy Hour will be moved to Thursday December 5th.
Shouldn't you be able to access that using the ViewBag?
E.g
ViewBag.customcss
Just checked and ViewBag.customcss (or whatever I'm looking for) is empty.
The bug is now being fixed and will be released in next version
bug number to track CMS-32835
our apologies for any inconvenience it might have caused.
Just upgraded to the latest version and we still have the issue with both ViewBag and ViewData:
I've also tried remaking my block until a bare minimum Async version, but still both the ViewData and ViewBag are empty.
Here are my installed packages:
Am I missing something here?
I will relay the message to the developer who fixed the bug and will get back to you .
This is the response I've got
There are some special tags that will not be passed along when you have nested content areas, Other custom keys should be passed along
That is due to the related issue [CMS-27573]
If the partner would like to pass along view data in a nested content area, I guess they could do it like this in the nested view:
@Html.PropertyFor(m => m.ContentArea, { Tag = ViewData["tag"} )
What we're trying to pass along are these standard "Display As".
I tried implementing the PropertyFor you suggested in ContainerBlock (the parent of ContainerColumnBlock) as well as on the ContainerColumnBlock but the ViewData and ViewBag is still empty.
Hi
On some blocks I have this code snippet in order to get which size the block has.
After upgrade to 12.20.3 ViewComponentContext.ViewContext.ViewData.Values are null all of a sudden, which seems like a bug.
On another site we try to fetch customcss (that's added as an additionalViewData in ContentArea PropertyFor) which also is null all of a sudden after upgrade.
I can't pinpoint exactly which package that broke this, but these are the packages I've updated:
<PackageReference Include="EPiServer.CMS.AspNetCore" Version="12.20.3" />
<PackageReference Include="EPiServer.CMS.AspNetCore.HtmlHelpers" Version="12.20.3" />
<PackageReference Include="EPiServer.CMS.AspNetCore.Mvc" Version="12.20.3" />
<PackageReference Include="EPiServer.CMS.AspNetCore.Routing" Version="12.20.3" />
<PackageReference Include="EPiServer.CMS.AspNetCore.TagHelpers" Version="12.20.3" />
<PackageReference Include="EPiServer.CMS.AspNetCore.Templating" Version="12.20.3" />
<PackageReference Include="EPiServer.CMS.Core" Version="12.20.3" />
<PackageReference Include="EPiServer.Framework" Version="12.20.3" />
<PackageReference Include="EPiServer.Framework.AspNetCore" Version="12.20.3" />
It worked as expected in 12.20.1