Fog Creek Software
Discussion Board




Knowledge Base
Documentation
Terry's Tips
Darren's Tips

Suggestion: Relative folder names

The folder name, as in

$foreach x in (folder "areas")

seems to be an absolute reference from the top of the tree.  so,

$foreach x in (folder "x/areas") works,
but I could not get

$foreach x in (folder "./areas") to work.


It might be useful to allow this, from the perspective of allowing the developer to create similar functionality across areas of the site with a mininum of code-duplication.

I can't tell if i'm trying to force-fit CD into a role that it is not meant to play.  Then again, I suppose I'll find out

u d a y i v a t u r y
Wednesday, October 31, 2001

*  Recent Topics

*  Fog Creek Home