I have a rendering but wanted to place it in different placeholders on a page. I wanted to modify the HTML based on the placeholder for the current rendering being processed. Did anyone came across this scenario and solved it? Please share.
Example: I have image carousel rendering item. It has it's own .cs class where the HTML is created. Now, in Sitecore content item's presentation details, I add one image carousel rendering with the placeholder "zone1", and another image carousel rendering to "zone2" placeholder. Based on zone1 and zone2 the HTML varies. I am overriding RenderModel(HtmlTextWriter writer) to override the HTML.