Fog Creek Software
Discussion Board




Knowledge Base
Documentation
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:
http://mlpa.org/plan/

Here is the script for the "Minutes" list:

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

Any ideas?

TK
Friday, December 28, 2001

You'll have to do this in HTML view:

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

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:

http://mlpa.org/plan/

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

TK
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.

TK
Saturday, December 29, 2001

*  Recent Topics

*  Fog Creek Home