Fog Creek Software
Discussion Board




Knowledge Base
Documentation
Terry's Tips
Darren's Tips

How to confuse CD 2.0.3

The following cityscript in a template, combining the new nextLink and thisFolder variables, causes 2.0.3 to throw up one of those "encountered a problem" screens:

{$ nextLink n in (thisFolder) $}
[link markup, doesn't matter]
{$ end $}

CD hiccups when you try to preview the page, and after clearing the "encountered a problem" screen, there's nothing where the next link ought to be. (Yes, there are othe files in the folder.)

I'm stumped. Looks like a bug, but maybe I'm missing something. Was really hoping to handle this in the template, where previous/next would automatically work for all articles in the same folder.

M. C. Matti
Thursday, May 22, 2003

thisFolder and nextLink, being two new features, are jealous of each other and don't get along. thisFolder works with forEach but not with nextLink or previousLink.

Needless to say they will have an Attitude Adjustment in time for the next beta.

Joel Spolsky
Thursday, May 22, 2003

I'm finally getting around to playin with previousLink and nextLink and I'm having a hard time getting it to do what I want... I'll report back once I figure out if it's my stupidity or CityDesk.

www.marktaw.com
Thursday, May 22, 2003

*  Recent Topics

*  Fog Creek Home