Fog Creek Software
Discussion Board




Knowledge Base
Documentation
Terry's Tips
Darren's Tips

File counting

I'm redoing my photoblog.

For the index page, I have set a limit to display 10 images on the page:

{$ foreach 10 x in (thisFolder))$}  <html stuff> {$next$}

What I want to do is have "archive" pages that also display only 10 images, but starting with the 11th image, the 21st image, etc.

I'm trying to get away from using the date fields, which have before and after functions.

amos
Saturday, January 17, 2004

Ok, I've answered my own question by reading Steph's question three below. So, please consider providing a count function in CD 3.

and ((after (articleCount "10"))(before (articleCount "21")))

amos
Saturday, January 17, 2004

Lots of people have voiced this request...

Or to be able to handle a foreach loop in a controlled fashion: Group every five elements within a loop into construct [code1], followed by this [code2], followed by the next group of five elements within [code1]...

geraldH
Monday, January 19, 2004

*  Recent Topics

*  Fog Creek Home