Posted on 10/06/2008 09:22:52
Hi Paul,
Since you say order, I'm glad, because that means that the software is working as intended. The OrderTemplateExtender runs twice, BeforeRender and AfterRender. You can use the second parameter in ExtendTemplate, which is a Dynamicweb.eCommerce.Frontend.TemplateExtenderRenderingState type, to decide when to append your new tags:
if (RenderingState == Dynamicweb.eCommerce.Frontend.TemplateExtenderRenderingState.After)
or
if (RenderingState == Dynamicweb.eCommerce.Frontend.TemplateExtenderRenderingState.After)
But the issue of doubled rendering only applies to loops. Is that the case here also?
/Lars