Support

Account

Home Forums Add-ons Repeater Field Problem occurs when output as tabs for nested repeater field Reply To: Problem occurs when output as tabs for nested repeater field

  • Hi all,

    I’m having the same issue with Flexible Content & Foundation’s Tabs.

    I need to loop through first time to get the tab titles, and second time to get the content but second loop isn’t fetching the correct data.

    
    <ul>
        <!-- While Loop 1 -->
        <li class="tabs-title is-active"><a href="#$title">$title</li>
        <li class="tabs-title"><a href="#$title">$title</li>
        <li class="tabs-title"><a href="#$title">$title</li>
        <!-- /While Loop 1 -->
    </ul>
    
    <div class="tabs-content">
        <!-- While Loop 2 -->
        <div class="tabs-panel is-active" id="$title">
            <p>$content</p>
        </div>
        <div class="tabs-panel" id="$title">
            <p>$content</p>
        </div>
        <div class="tabs-panel" id="$title">
            <p>$content</p>
        </div>
        <!-- /While Loop 2 -->
    </div>
    

    Any solutions out there?

    Thanks