The gv-repeat allows for Theme developers to easily create dynamic layouts by allowing controls for repeating items inside the Governor app.

Tag

<div gv-repeat></div>
    

Helper Tags

  • -label
  • -min / -max

Basic

Example: index.html

<div class="threecol" -block="Three Column Call out">
    <div class="3-col" gv-repeat -max="3" -label="Column">
        <a gv-link href="@href">
            <h3 gv-text -label="Title"></h3>
            <p gv-wysi -label="Text">
                &quot; @text &quot;
                <span class="author" gv-text -label="Authors Name">-@text</span>
            </p>
        </a>
    </div>
</div>
    

Pro Tips

Remember, adding a -min, or -max allows you to control the number of times an item can be added to your layout. If you don't set a min or max, it can be added an infinite number of times.

Did this answer your question?