Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

BlockControl from BlockData



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?

Sep 15, 2015 19:59

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.

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.