Looping and TemplateRepeatIndex in Dreamweaver template

前端 未结 2 455
北荒
北荒 2021-01-18 10:59

I am having some trouble with accessing variables, here in this case Setvariable. When I go inside loop, variable doesn\'t exists. Anyone have any insight on this. Appreciat

相关标签:
2条回答
  • 2021-01-18 11:44

    This might help: http://www.tridiondeveloper.com/get-and-set-variables-in-dwts

    0 讨论(0)
  • 2021-01-18 11:46

    Problems with variables in loops are well known and even documented.

    Basically the first loop is already evaluated by the time you set your variable, so you will always be off by one.

    • Set variable i=0
    • Loop Iteration 1, i=null
    • Loop Iteration 2, i=0
    • Loop Iteration 3, i=1
    • etc
    0 讨论(0)
自定义标题
段落格式
字体
字号
代码语言
提交回复
热议问题