Fog Creek Software
Discussion Board




Knowledge Base
Documentation
Terry's Tips
Darren's Tips

New features in Beta 5

We added two small, cool new features for Beta 5 (1.0.19) which are actually very helpful but only took a couple of lines of code.

(1) You can now set "foreach" loops to include no more than a certain number of entries. Here's how it works:

{$ foreach x in (all) $}

loops for all articles;

{$ foreach 5 x in (all) $}

only includes the first 5. Combined with a sort order, you can do weblogs:

{$ foreach 20 x in (all) SortDescendBy .fileddate $}

returns the latest 20 articles in reverse chronological order, etc.

(2) To make it easier to add pictures when you use an external editor, we added a "Copy Magic Name" menu item to the right-click (context) menu in the main window. This figures out the magic "PTMFOG" file name that CityDesk wants you to use for internal pictures and links and copies it to the clipboard, so you can paste it into your external editor.

For more details, see the online help.

Joel Spolsky
Monday, November 26, 2001

*  Recent Topics

*  Fog Creek Home