Problems, need help? Have a tip or advice? Post it here.
2 posts Page 1 of 1
I am trying to create a blog list that is non-standard and cannot be created by simply listing pages.

IE. Page 1 has blogs 1-5 and page 2 has blogs 6-10 etc... Each blog excerpt has to be handled separately (eg. limit=1 offset=1) as it is built into different blocks (see attached).

It is paginated.

And lastly, blocks without stories are hidden.

Sorry it's a lot but I cannot figure these out from the documentation.

Demo code is simply:
<div class="newsHolder">
<div class="newsStory1Holder"><div class="newsPageText1ColHolder">Blog 10</div></div>
<div class="newsStory2Holder"><div class="newsPageText1ColHolder">Blog 9</div></div>
<div class="newsStory3Holder"><div class="newsPageText1ColHolder">Blog 8</div></div>
<div class="newsStory4Holder"><div class="newsPageText1ColHolder">Blog 7</div></div>
<div class="newsStory5Holder"><div class="newsPageText1ColHolder">Blog 6</div></div>
</div>

Attachments

I've figured it out for those who are interested.

The secret lies in the lines:
<cms:if k_current_record="<cms:add k_record_from '1' />" >My result 1</cms:if />

<cms:if k_current_record="<cms:add k_record_from '2' />" >My result 2</cms:if />

<cms:if k_current_record="<cms:add k_record_from '3' />" >My result 3</cms:if />

So, by incrementing the count, I can now do an if statement for each one and style them differently.

This also allows for normal operation of pagination etc.
2 posts Page 1 of 1