Fog Creek Software
Fog Creek Software

CityDesk 2.0-Documentation
CityScript Placeholders

When you publish a site, CityDesk combines the template with the article to create a document (usually an HTML page) which is transferred to the web server.

Inside templates, you can use the following CityDesk code as placeholders for fields from the article as follows.

This CityScript: Is Replaced With:
{$.headline$} The article headline
{$.author$} The article's author
{$.body$} The article's body
{$.modifiedDate$} The date that the article was last modified
{$.modifiedTime$} The time that the article was last modified
{$.filedDate$} The date that the article was filed
{$.filedTime$} The time that the article was filed
{$.keywords$} The keywords of the article
{$.teaser$} The teaser
{$.sidebar$} The sidebar
{$.about$} About the Author
{$.extra1$} The Extra 1 field
{$.extra2$} The Extra 2 field
{$.link$} A relative link to this article, for example, MyArticle.html
{$.absLink$} An absolute link to this article, for example, News/Articles/MyArticle.html
{$.fileName$} The name used for the article in the main window

It's possible to create a template which handles missing fields elegantly. See Dealing With Missing Fields.

By default, dates are displayed in English using the format January 1, 2000. Times are displayed using the format 01:01 AM. See Controlling the Formatting of Dates and Times for how to modify the language or format for the date and time.

CityDesk Documentation -  Home


©Copyright 2001-2003 Fog Creek Software, Inc. All Rights Reserved.