mike-c2
9/25/2017 - 6:36 PM

Mura Blog Tmeplate

<cfsilent>
 <cfscript>
  customers = $.getBean('content').loadBy(contentId="D7A83387-C291-890F-328EC945377AA577");
   
  custIterator=$.getBean('contentGateway').getKidsIterator(
    '00000000000000000000000000000000000',$.event('siteID'),customers.getContentID(),'default',now(),
    0,'',0,'releaseDate','desc',$.event('categoryID'),'',$.event('tag'), false,false
  ).setNextN(0);
   
  itemsPerPage = 12;
  recordcount = custIterator.getRecordCount();
  param url.startrow = 1;
  endrow = min(startrow + itemsPerpage - 1, recordcount);
  custIterator.setStartRow(startrow);
  path = '/blog/';
  urlparams = '';
  </cfscript>
</cfsilent>
<cfoutput>
  <cfif custIterator.hasNext()>
    <section class="section-01">
      <div class="container">
          <div class="row justify-content-center section-header">
              <div class="col-md-8 col-lg-6 text-center">
                  <h2 class="section-subheader">Do more by connecting to the ArrowStream Foodservice Network</h2>
              </div>
          </div><!-- /.section-header -->

        
          
          <div class="row section-content justify-content-center text-center-col">

            <cfloop condition="custIterator.hasNext()">
              <cfset thisItem = custIterator.next()>
              <div class="col-8 col-lg-4 mb-5 mb-lg-0">
                <img class="icon" alt="icon fpo" src="#$.getURLForImage(fileid=thisItem.getValue('fileid'), size='thumbnail-small')#" />

                <h3>#thisItem.getValue("thumbnailHeader")#</h3>

                <p>#thisItem.getValue("thumbnailSubheader")#</p>
                
                <a class="btn btn-link" href="#thisItem.getValue("filename")#">Learn more</a>
              </div><!-- /.col- -->
            </cfloop>
          </div><!-- /.row.justify-content-end -->
          
      </div><!-- /.container-fluid -->
    </section><!-- /.section-01 -->
  </cfif>
</cfoutput>