Hi Quan,
Thanks for your reply!
I've been looking at making my own property model but as I said, I'm not sure how I can get it to apply to a local block.
If I create a new class that inherits from PropertyModel<TValue,TType>
, what should i put as TType? It must be a type that is a type of PropertyData, and what type of PropertyData is a local block?
Do you have any example of this? I can't get it to work.
Hi Niklas,
Can you show me the code of your custom property and its usage ?
Hi Quan,
I don't have any code to show you since I don't know what to put as TType for a local block.
/Niklas
Hi Niklas,
You can put PropertyBlock as TType.
You can take a look at the music festival template site to see the real scenario on how to create custom block and implement property model.
Hi,
I noticed that my properties that are local blocks are not visible in the JSON that I get in return from a reqeust to the Content Delivery API.
Is there any way to include properties from local blocks in a request to "/api/episerver/v2.0/content/{referenceORguid}"?
I've been looking at making my own PropertyModel but I'm not sure how I can get it to apply to a local block. Anyone have any ideas or input?
/Niklas