Determining the Current Value of the Iterator

The name defined in the iteratorName attribute determines the current value of the iterator. The section that the <div od-iterator="<tag>Iterator"> tag encloses includes this name.

To determine the current value of the iterator

  • For example, if you set the value of the iteratorName attribute to CurrentID, then you can use the following format to get the value of the iterator:

<od-attr-currentid>

You can use the <od-attr-currentid>+x tag to reference a value that is an increment over the current value. The following code is an example of this usage:

<div od-prefix od-id=[2301:50] od-iterator="currentId">
  <div od-type="control" id="od-attr-currentId">
  .
  .
  <!--od section control close-->
  </div>
  <div od-type="control" id="od-attr-currentId+100"/>
<!--od section iterator close-->
</div>