Developer forum

Forum » Development » Extending a loop

Extending a loop


Reply

Hey guys,

i'd like to extend one of Dynamicwebs standard eCommerce loops.

I loop my variants on my BOM products, and i need access to a customfield in the BOM variant product. Only a few standard fields are available in the loop by default.

Here's an example of my demo template

<--@LoopStart(BOMConfigurators)-->
<h1>BOMConfigurators</h1>
 <--@DwTemplateTags-->
<hr>
<h2>ConfiguratorProducts</h2>
<--@LoopStart(ConfiguratorProducts)-->
 <--@DwTemplateTags-->
<hr>
<h3>VariantCombinations</h3>
<--@LoopStart(VariantCombinations)-->
 <--@DwTemplateTags-->
 HERE I WANT A CUSTOM TAG
<--@LoopEnd(VariantCombinations)-->
<hr>
<--@LoopEnd(ConfiguratorProducts)-->
<hr>
<--@LoopEnd(BOMConfigurators)-->

<--@LoopStart(CustomVariantCombinations)-->
 <--@DwTemplateTags-->
<--@LoopEnd(CustomVariantCombinations)-->

As you can see i want to extend a loop within a loop, within a loop.
I tried a few approaches to this, but none of the worked so far.

Can it be done?

The alternative is making each of the outside loops from scratch i guess.

Hope one of you knows what to do :-)

Regards
    Martin

 


Replies

 
Reply
Hi

Maybe you can use some of Lars' ideas in this article:
http://engage.dynamicweb-cms.com/default.aspx?id=361&articleid=155

 - Lasse

 

You must be logged in to post in the forum