BlockControl from BlockData

Vote:
 

Hi,

Simple question. Is there a way, that givin a reference to a BlockData object, you can get a reference to the BlockControl template that is rendering that block?

#134625
Sep 15, 2015 19:59
Vote:
 

The actual block control that may render the block depends on lot of "stuff" around it (what kind of display channel is used, what kind of tags are used, etc). One of the easiest and straight forward way would to ask `TemplateModelRepository` (it will require model type of the block, but I guess that's retrievable from block reference). More info about the general discovery process underthe hood you can read here.

#134626
Sep 15, 2015 20:36
* 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.