0

The container currently displays 4 entries. I need to show 28 entries. I tried duplicating the code but failed. I am a beginner coder with an HTML background.

This is the page: https://www.symbiote.com/pages/case-studies

{column_icon}
    {if column_icon:count == 1}
    <div class="totem row">
        <div class="boundry">
    {/if}
            <div class="totem-item col-xs-12 col-xs-offset-0
            {if column_icon:total_rows == 1}
             col-sm-6 col-sm-offset-3
            {if:elseif column_icon:total_rows == 2}
             col-sm-4 col-sm-offset-2
            {if:elseif column_icon:total_rows == 3}
             col-sm-4 col-sm-offset-0
            {if:elseif column_icon:total_rows == 4}
             col-sm-3 col-sm-offset-0          
            {if:else}
             col-sm-4 col-sm-offset-0
            {/if}
            {if column_icon:count == column_icon:total_rows} col-sm-offset-0{/if}">
                {if column_icon:icon}
                <div class="totem-item-icon icon">
                    {if column_icon:link}
                    <a href="{column_icon:link}"><img src="{column_icon:icon}" /></a>
                    {if:else}
                    <img src="{column_icon:icon}" />
                    {/if}
                </div>
                {/if}
                <div class="totem-item-content">
                    {column_icon:content}
                </div>
            </div>
    {if column_icon:count == column_icon:total_rows}
        </div>
    </div>
    {/if}
    {/column_icon}
  • Hi Heidi. You can do this, but how you go about this will depend on whether you know for sure how many items there will be to display. If you are building this for a known / fixed number of items you can adopt a relatively simple approach: if you want to build something that will layout an arbitrary number of items (i.e. / e.g. up to 28) you will need to add the ability to do some simple maths to your EE installation. This is not difficult, but does involve installing an extra EE add-on to your site. Please advise which applies? It will help also to know which version of EE you are using. – jcogs.eecms Nov 5 at 22:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.