Fog Creek Software
Discussion Board

Knowledge Base
Terry's Tips
Darren's Tips

How do you access just the text in a field?

I want to do something like the following on my website to create an html file for another site to "include" onto one of their pages -

{$ foreach 8 y in (folder "news")$}
<a href="{$$}"><b>{$y.headline$}</b></a><br>
{$ y.teaser $} <br>
{$ next $}

I have this basically working but I don't want the pictures, that I also have in the teaser field, to be picked up.

How do I do that?

Richard Wood
Saturday, October 4, 2003

You could put the picture in another field (extra1 maybe).  Then, when you want the picture with the text you do this:


and when you don't want the picture, just include the teaser filed in the cityscript

Joel Goldstick
Saturday, October 4, 2003

*  Recent Topics

*  Fog Creek Home