Fog Creek Software
Discussion Board

Knowledge Base
Terry's Tips
Darren's Tips

How to bullet links with a script?

I want some of my Cityscript generated links to be a bulleted list.

See this page:

Here is the script for the "Minutes" list:

{$ foreach 3 x in (and(folder "Minutes")(not(keyword_contains "archive"))) $}{$x.headline$}

Any ideas?

Friday, December 28, 2001

You'll have to do this in HTML view:

{$ foreach 3 x in (and(folder "Minutes")(not(keyword_contains "archive"))) $}<LI>{$x.headline$}</LI>

The reason that you have to do it in HTML view is that in HTML it's not really allowed to put anything between the <UL> and the first <LI>, so the For Each will actually get moved somewhere else by the dang WYSIWYG editor.

Joel Spolsky
Friday, December 28, 2001

It works.  See minutes, security reports, and committees:

Tomorrow, I'm going to figure our why some of the bullets turned blue in Netscape.  My bad, I'm sure.

Saturday, December 29, 2001

You have an opening <A> tag, but no closing tag.

Brad Wilson
Saturday, December 29, 2001

Thanks Brad and Joel.

I added the missing </A>'s and learned more about unordered lists than I though I'd ever need to.  Probably a good thing.

Saturday, December 29, 2001

*  Recent Topics

*  Fog Creek Home