Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more

Different preivew renderers for different blocks?

Vote:
0

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:
0

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.