London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!
AI OnAI Off
London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!
Was `HeroPromoCards` always a list of blocks, or did the property start out as just a block? Do you have any warnings in the logs during startup of the application and syncing of content types? What happens if you rename the property, does it work then?
Hi,
Yeah, I think the most simple way to work around with your problem is changing your property name. There are some cases that property type is not synced from code if the old type is not convertiable to new type if you have some data for that property
Thanks guys, yeah changing the property name fixed it. We were able to change the name back to the original after wards also and it worked perfectly.
Hi Folks,
I have a property on a page which is an IList of blocks
[Required] [ListItems(3)] [Display(Name = "Hero Promo Cards", Description = "List of optional Hero Promo Card blocks (min 1 and max 3 can be added)", Order = 10)] public virtual IList<HeroPromoCardBlock>? HeroPromoCards { get; set; }
For some reason this is being read by the CMS as a single block
Have I done something wrong here. I've used the same approach elsewhere in the same project and it works as expected. The only thing I can think of is that this property was originally a content area and changing from that has corrupted the database somehow. I have reset the content type to code in the settings several times and it is still broken.