Fog Creek Software
Discussion Board




Knowledge Base
Documentation
Terry's Tips
Darren's Tips

Help with some error (4158) in a loop

Hi,

Take a look at this code (some of it is PHP):

<? if ("{$ .fileName $}" != "index") { ?>
    {$ forEach page in (and (thisFolder) (not(keywordContains "private")) (not(fileName "thisSection")) (not(fileName "index")) ) $}
        {$ before $}<ul><h2>{$ .strPagesHere $}:</h2>
        <a href="{$ page.link $}">{$ page.headline $}</a></li>
{$ after $}</ul>
{$ next $}
<? } ?>

I get "The variable page.link is invalid". I can't find what's the problem.

Thanks in advance.

Ivan V.
Saturday, December 11, 2004

Nevermind.

Ivan V.
Saturday, December 11, 2004

*  Recent Topics

*  Fog Creek Home