November Happy Hour will be moved to Thursday December 5th.
November Happy Hour will be moved to Thursday December 5th.
Sander,
Probably I'm missing something but I do see the error when trying to create a new block from a ContentArea. It's true that the error is not shown straight after creating (which is not a big deal in my opinion) but after you try to save/publish for the first time.
Is it that you have a block type that has ContentArea property inside or it's a page with ContentArea?
Would it be possible for you to be more precise? Ideally you could fork https://github.com/episerver/alloy-mvc-template and create a reproducible environment.
Hi Bartosz,
Thanks for your response.
It is a content area on a block inside a content area on a page :-)
It is specially when I choose for "create a new block":
After that I choose the block which has a content area in it:
At the end I add 3 or less Items in the block contentarea:
The "Items" property has the [] attribute, so by creating this block, it should show the error, but is does not.
Hopefully tou have an idea how to fix this.
Thanks in advance.
Grtz Sander
Hi Bartosz,
I still run into this problem and finally created a fork and added my problem: https://github.com/sandervandepas/alloy-mvc-template
Here are the steps to reproduce:
Please have a look at this and hopefully you will have an answer for this problem.
Thanks in advance!
Kind regards,
Sander
Hi Sander, I have cross-verified the same validation rules in the alloy sample project and I got an error when we cross the range between 4 to 10 and also getting the error when trying to publish the block with 0 items after creating.
Hi Sanjay,
Thanks for your reply.
Could you share a screenshot which shows the error?
And in which browser did you see the error?
Maybe it's a browser issue.
Thanks in advance!
Grtz
Sander
Hi Sanjay,
Ah yeah, that's rigt, but you didn't follow my reproduce steps.
This is when you add the block in normal Edit mode, but it happens when you add the block with inline edit mode, just as you follow my steps.
Could you check this again please?
Thanks in advance!
Grtz
Sander
We decided to rethink our approach to so-called `Inline Create`. Hopefully soon we will be able to share more info.
In the meantime please upgrade to:
https://nuget.episerver.com/package/?id=EPiServer.CMS.UI.Core&v=11.32.0
and
https://nuget.episerver.com/package/?id=EPiServer.Labs.BlockEnhancements&v=0.10.0
Inline Edit was renamed to Quick Edit and moved from Labs to the main product.
Inline Create is only available in nested Content Areas.
I can confirm the bug is there @Sander, will take it into account in the upcoming release.
Hi,
I've a custom validator (MinMaxAttribute) added to a block property.
When I create a new block of that type and save it for the first time, the error message that it needs at least x items is not showing and the block is not added to the ContentArea because of missing rules.
When I create a block following the rules and after saving this block, it will be added.
Deleting one item so it will not pass the rules, the error is shown.
But from here you can publish this block instead of saving this block by creation.
How can I fix this?
My property:
My custom error attribute:
Thanks in advance!
Cheers,
Sander