Fog Creek Software
Discussion Board




Knowledge Base
Documentation
Terry's Tips
Darren's Tips

Templates for articles and lists

I have made a template for my articles and i'm happy. Now I want to display the last five articles on one page using the same format/template. Can i somehow reference or reuse the existing template? Or do I have to recreate the template html code in my CityScript loop?

Geert-Jan Thomas
Wednesday, December 19, 2001

Copy and paste all the html from your template and put it into an index.html file.

Then where you have {$.body$} in the template replace it with...

{$foreach 5 x in (folder "FolderName")$}
{$x.body$}<br>
{$next$}

assuming your articles are in a folder called "FolderName"

Michael Pryor
Wednesday, December 19, 2001

*  Recent Topics

*  Fog Creek Home