Im trying to figure out the best wasy to loop over an array, but limit one loop to the first five positions. Then in a separate loop display the rest of the array.
I am limited to what I can use. Meaning we code everything within cfscript tags in our cfc's. Therefore I cant use cfsets or such.
Here is my cfloop now:
<cfloop from="1" to="#variables.albumEdit.albumCnt#" index="i">
<li id="article_1"><input type="hidden" name="trackList" value="#variables.albumEdit.albumName[i]#" />
<span class="attribute album-title">#variables.albumEdit.albumName[i]#</span>
<span class="attribute album-status">#variables.albumEdit.prodStatus[i]#</span><cfloop from="1" to="#variables.albumEdit.albumCnt#" index="i">
<li id="article_1"><input type="hidden" name="trackList" value="#variables.albumEdit.albumName[i]#" />
<span class="attribute album-title">#variables.albumEdit.albumName[i]#</span>
<span class="attribute album-status">#variables.albumEdit.prodStatus[i]#</span>
<span class="attribute genre">Rock</span>
<span class="attribute release-date">#variables.albumEdit.releaseDate[i]#</span>
<span class="attribute track-list"><a href="index.cfm?action=younger.trackListEdit&prodID=#variables.albumEdit.prodID[i]#">Edit Tracks</a></span>
<div class="controls">
<a class="button secondary" href="index.cfm?action=younger.gcaAlbumDetailEdit&prodID=#variables.albumEdit.prodID[i]#">Edit</a>
</div>
</li>
</cfloop>