Fog Creek Software
Discussion Board




Knowledge Base
Documentation
Terry's Tips
Darren's Tips

Menu and Templates

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

Aleks
Tuesday, July 08, 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.link$}">{$x.headline$}</a>
{$next$}

tk
Tuesday, July 08, 2003

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

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 08, 2003

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

Joel Goldstick
Tuesday, July 08, 2003

Amos has a nice summary of ways to create menus in City Desk at http://satterlee.com/backend/Menus.html

Ken McKinney
Wednesday, July 09, 2003

I use the folder "articles" as a base folder to form my menu's. I nice example is www.fietsersbond.nl/delft. 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 www.fietsersbond.nl, 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:

http://www.fietsersbond.nl/delft
http://www.fietsersbond.nl

Menno

Menno Tillema
Thursday, July 10, 2003

*  Recent Topics

*  Fog Creek Home