Try our conversational search powered by Generative AI!

Different preivew renderers for different blocks?

Vote:
 

Hi,

Is it possible to have different preview renderers for different blocks? Or do I have to create ONE generic preview renderer for ALL blocks?


//Marcus

 

#79805
Jan 08, 2014 8:55
Vote:
 

You can specify this by letting your Preview template (or controller if you're using MVC) inherit IRenderTemplate<T> where T should be the specific Block you're interested in.

Alloy templates only have one Preview template, hence the preview template inherits IRenderTemplate<BlockData>.

#79806
Jan 08, 2014 9:04
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.