Fog Creek Software
Discussion Board

Knowledge Base
Terry's Tips
Darren's Tips

How to include a single article body ?

Hi in the help one can create a loop to include several bodies from multiple articles in a folder, what if I only want a specific body article ?


Monday, June 30, 2003

Use the include tag in 2.0, in 1.0, write a loop that uses the filename as a condition

{$foreach 1 x in (filename="MyArticle") $}

where MyArticle is the name of the article... I think that' sthe right syntax.
Monday, June 30, 2003

erm, no

{$ foreach x in (fileName "foo") $}
{$ x.body $}
{$ next $}

Joel Spolsky
Monday, June 30, 2003

yeah... that's better.
Monday, June 30, 2003

*  Recent Topics

*  Fog Creek Home