Fog Creek Software
Discussion Board

Knowledge Base
Terry's Tips
Darren's Tips

City Desk newbie stuff

I have just been introduced to City Desk, and have some very basic questions. When should I create an HTML page and when an article? I'm playing with the non-profit template, for a local charity, and can't figure this basic issue out.

Is it best to have a folder for each page and put the articles in it?

I keep getting a syntax error #1357, and can't find out what it means anywhere in the help files.

Can anyone help a newcomer? Thanks.

Kathy Dennis
Sunday, April 6, 2003

This is all very subjective stuff as the correct answer varies with what you are trying to accomplish and how you like to do things.

I prefer to work solely with articles as articles allow the use of fields such as headline, sidebar, etc.  I like to create folders that mirror the categories of my websites--it just makes it easier for me to organize large amounts of information. 

As far as creating index pages using CityDesk script, I prefer to use keywords to categorize all my articles.  Folders work fine if your web site is only one layer deep but CityDesk has no way to process subfolders.

I don't know about the error code; does the error message say anything in addition to the error number?

David Burch
Sunday, April 6, 2003


You should almost always create articles. I am not entirely sure what benefits are to be had by using HTML (except in instances where CD messes up said HTML). 

I run a reviews/help site, and use one folder to hold all the tutorial articles, and another one to hold news and reviews. I put the graphics for a particular article in a subfolder, with an easily traceable name (so that I know which article the graphics belong to). Doing so facilitates site reorganization (if necessary).

Sorry, I don't know what your error code means. But CD tends to be somewhat cryptic when it comes to errors in scripting (which might be the problem).

Good luck with CD....


Robert Pawlak
Sunday, April 6, 2003

Do articles.  You can do folders and kewords once you get your CityDesk feet on the ground and get a sense what will work best.

Darren has a non-profit .cty file you can download to see how he did it:

Sites for small non-profits are fundamentally similar, but, I've found, you never really know what sort of content your going to get next.  The way CityDesk works helps a lot. With articles and template you don't have to get it right the first time.

Regarding the syntax error, you've probably got a busted script.  Past the html of what you think is the offending script into the forum and we'll see if we can fix it.

Sunday, April 6, 2003

Thanks. I am used to thinking in terms of pages (Home, Mission, Volunteers, Location, Needs List for example for my homeless shelter's site, and the navigation links go from one page to another. Do I hear you all saying to have only the index page, and everything else as articles? Then  the menu in the non-profit template just links to the articles?

Kathy Dennis
Monday, April 7, 2003

Make the index page an article too.  Here is a screen shot of a small site, a work in process:

It has one template for all the pages.

Here is the script for the menu (each main page has the keyword "menu")

{$foreach x in (keyword_contains "menu") $}
: <a href="{$$}">{$x.headline$}</a>{$next$}

This one stick pictures in a table on the photo pages:

<TABLE cellSpacing=0 cellPadding=3 width="100%" border=0>
<TD>{$ foreach x in (folder "TreeTopsInfo\images")$}
<TD vAlign=center align=left><B><A href="{$$}">{$x.Headline$}</A></B>
<P><FONT size=2>{$x.Teaser$}</FONT></P></TD>
<TD vAlign=center align=middle width=240>{$x.Sidebar$}</TD></TR>
<CENTER><IMG height=10 alt=[Image] hspace=4 src="PTMFOG0000000183.gif" width=10 border=0 cd:pos="0"><BR clear=all></CENTER></SPAN></TD></TR>

PTMFOG0000000183.gif is one of those spacer, clear gif's.

Monday, April 7, 2003

Nice site. I'm very impressed and will read your template code carefully. I did finally get the non-profit template to give me something that looks decent without any errors. Now, if I can get the non-profit to agree to let me do their site..... You probably know how that can be!

Kathy Dennis
Monday, April 7, 2003

*  Recent Topics

*  Fog Creek Home