One of our clients is using the Self Optimising Block throughout their site. On the home page though they have a slideshow, this works by using tags on a ContentArea to force the rendering through a special View file specifically designed for the slideshow.
The problem we have is that when we drop a Self Optimising Block into the Slideshow ContentArea, the tag is being applied to the Self Optimising Block instead of the ContentArea inside the Self Optimising Block so it just loads the default renderer.
I was hoping I might be able to define my own custom renderer for the Self Optimising Block like so:
Then from within the OptimizingSlide.cshtml view just render a Html.PropertyFor() and just pass down the correct tag.
Unfortunately though the view for the Self Optimizing Block does not use Html.PropertyFor, it is the following:
<% if (model !="null)" html.rendercontentdata(model, false); %>%>
Is there any alternative to this, or a way that I can use this and pass in a tag? I have tried passing the isContentInContentArea as true instead but that did not help.
Hi All
One of our clients is using the Self Optimising Block throughout their site. On the home page though they have a slideshow, this works by using tags on a ContentArea to force the rendering through a special View file specifically designed for the slideshow.
The problem we have is that when we drop a Self Optimising Block into the Slideshow ContentArea, the tag is being applied to the Self Optimising Block instead of the ContentArea inside the Self Optimising Block so it just loads the default renderer.
I was hoping I might be able to define my own custom renderer for the Self Optimising Block like so:
Then from within the OptimizingSlide.cshtml view just render a Html.PropertyFor() and just pass down the correct tag.
Unfortunately though the view for the Self Optimizing Block does not use Html.PropertyFor, it is the following:
Is there any alternative to this, or a way that I can use this and pass in a tag? I have tried passing the isContentInContentArea as true instead but that did not help.
Thanks very much
Dave