Fog Creek Software
Discussion Board




Knowledge Base
Documentation
Terry's Tips
Darren's Tips

1st CD graffiti site - I need a debug

http://graff.tk-jk.net/ purpose is to direct my hormonal son away from actually doing it. If you are into debugging today, you can help me out. Something obvious (but not to me) I'm sure.

I have a problem with the next / previous stuff. Essentially I want a "Next / Previous above the picture and below the picture on pages like this:
http://graff.tk-jk.net/2003_0609/Dscf0025HoodedSweatshirtG.html

When I put the "next previous" below, it works great, when I put it above and below I get publishing errors like this:

"Nested nextLink/previousLink statements or nested included files would cause infinite loop (\2003_0609\Dscf0016Lion:854)
An error occurred while publishing, so the site was not uploaded.html"

**HERE IS THE TEMPLATE FOR BELOW THAT WORKS:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>{$.siteName$}{$ if nonBlank .headline $} - {$ .headline $}{$ endIf $}</title>
</head>
<body bgcolor="#ffffff" text="#000000"><div style="WIDTH: 100%; BACKGROUND-COLOR: #dddddd">
        <font size="6">{$ .SiteName $}</font><br>
        <font color="#ff8040" size="2">{$ .TagLine $}</font>
    </div>
    
<P></P><blockquote style="MARGIN-RIGHT: 0px">
  <P><strong>{$ .headline $}<BR>  </strong>
                <font size="2">
                    <em>        Published
                        {$ .filedDate $}</em>
                </font></P>
  <P><FONT size=2>{$.body$}</FONT></P>

    </blockquote>

    <p>{$ previousLink p in (folder "2003_0609") $}
    <A href="{$p.Link$}">{$p.sidebar$}</A>&nbsp;&lt; <A href="{$p.Link$}">Previous</A>&nbsp;&nbsp;&nbsp;
{$ end $} {$ nextLink n in (folder "2003_0609") $} <A href="{$n.Link$}">Next</A>&nbsp;&gt;<A href="{$n.Link$}">{$n.sidebar$}</A> </p><P><A href="PTMFOG0000000013">Home</A></P>
</body>
</html>

**HERE IS THE TEMPLATE FOR ABOVE AND BELOW THAT PRODUCES THE ERROR:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>{$.siteName$}{$ if nonBlank .headline $} - {$ .headline $}{$ endIf $}</title>
</head>
<body bgcolor="#ffffff" text="#000000"><div style="WIDTH: 100%; BACKGROUND-COLOR: #dddddd">
        <font size="6">{$ .SiteName $}</font><br>
        <font color="#ff8040" size="2">{$ .TagLine $}</font>
    </div>
    
<P></P><blockquote style="MARGIN-RIGHT: 0px">
  <P><strong>{$ .headline $}<BR>  </strong>
                <font size="2">
                    <em>        Published
                        {$ .filedDate $}</em>
                </font></P>
  <p>{$ previousLink p in (folder "2003_0609") $}
    <A href="{$p.Link$}">{$p.sidebar$}</A>&nbsp;&lt; <A href="{$p.Link$}">Previous</A>&nbsp;&nbsp;&nbsp;
{$ end $} {$ nextLink n in (folder "2003_0609") $} <A href="{$n.Link$}">Next</A>&nbsp;&gt;<A href="{$n.Link$}">{$n.sidebar$}</A> </p></BLOCKQUOTE><P>
  <P><FONT size=2>{$.body$}</FONT></P>

    </blockquote>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">

    <p>{$ previousLink p in (folder "2003_0609") $}
    <A href="{$p.Link$}">{$p.sidebar$}</A>&nbsp;&lt; <A href="{$p.Link$}">Previous</A>&nbsp;&nbsp;&nbsp;
{$ end $} {$ nextLink n in (folder "2003_0609") $} <A href="{$n.Link$}">Next</A>&nbsp;&gt;<A href="{$n.Link$}">{$n.sidebar$}</A> </p></BLOCKQUOTE><P><A href="PTMFOG0000000013">Home</A></P>
</body>
</html>

tk
Monday, June 16, 2003

Of course I left {$end$} from my next / previous scripts.

Nothing like a public posting for quickly finding an embarrassing error.

Now it's time for 2nd guessing on what I really should do.

tk
Monday, June 16, 2003

*  Recent Topics

*  Fog Creek Home