Fog Creek Software
Discussion Board

Knowledge Base
Terry's Tips
Darren's Tips

Menu and Templates

Is there a tutorial on how I can add Menus to a CityDesk site?

Tuesday, July 8, 2003

You can use a script like this to generate a menu. Insert the keyword "menu" into the articles you want to appear in the menu.  Folks often put these menus into templates. There are many variations possible but this is a good starting point.

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

Tuesday, July 8, 2003

if you set up your menu as an unordered list like:
{$foreach x in <whatever here>$}
<li><a href="{$$}">Description Here</a><li>

then you can play with css to make your menu vertical buttons, or horizontal tabs.  Lots of ways to style them this way.  And they also look good in old browsers.

Joel Goldstick
Tuesday, July 8, 2003

I should have pointed you to  There is a very nice article using this technique there

Joel Goldstick
Tuesday, July 8, 2003

Amos has a nice summary of ways to create menus in City Desk at

Ken McKinney
Wednesday, July 9, 2003

I use the folder "articles" as a base folder to form my menu's. I nice example is After a lot of fiddling with a bit of javascript I figured out how to create the moving bicyles as well by means of the template;-)) If I add a article I also get anothe bicycle.

To be honest, I copied a lot of the design and pictures from, which is the dutch cycling association, Fietsersbond Delft is a part of this organisation.

Maybe you can get inspired by this approach.

Regards, <Menno Tillema>

Menno Tillema
Thursday, July 10, 2003

To get better links:


Menno Tillema
Thursday, July 10, 2003

*  Recent Topics

*  Fog Creek Home