Fog Creek Software
Discussion Board




Knowledge Base
Documentation
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 ITKiwi.com website to create an html file for another site to "include" onto one of their pages -

{$ foreach 8 y in (folder "news")$}
<a href="{$y.link$}"><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 04, 2003

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

{$.extra1$}{$.teaser$}

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

Joel Goldstick
Saturday, October 04, 2003

*  Recent Topics

*  Fog Creek Home