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

Try our conversational search powered by Generative AI!

Determine RenderingTags in blocktemplate

Vote:
 

Is is possible to determine the RenderingTags inside a block. I would like to sett diffrent properties depending on RenderingTag but i do not like to use more then one template since they do not change that much except a couple of settings.

#65842
Feb 12, 2013 10:22
Vote:
 

If you are using webforms, you should be able to do something like this in your block template:

(this.Parent.BindingContainer as PropertyContentAreaControl).Tag;

    

 

#65909
Feb 13, 2013 21:30
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.