Fog Creek Software
Discussion Board

Knowledge Base
Terry's Tips
Darren's Tips

New CityDesk site

I'm proud to announce opening of a new citydesk site: (leadership, dutch).

It's also a demonstration of the power of Cityscript (despite it's limitations) in combination with another scripting language, here PHP.

The menu looks like:

{$foreach x in (and (not (folder "templates"))&nbsp;(keyword_contains "(tab)"))$}<A class="TabMenu" href="{$$}">{$if nonblank x.extra2$}{$x.extra2$}{$endif$}{$if blank x.extra2$}{$x.headline$}{$endif$}</A>|{$next$}

Which is passed as a string parameter into a php function, which breaks the string apart and applies a formatting template to it. The result : a (in this case) tabbed menu interface, which is reconfigurable to adapt almost any form...

If people are interested in sources, drop a note.

Adriaan van den Brand
Wednesday, September 18, 2002

*  Recent Topics

*  Fog Creek Home