Fog Creek Software
Discussion Board

Knowledge Base
Terry's Tips
Darren's Tips

Utilizing fileName

In my CD site, I like to publish the name of the html file in the page.  This works fine in all circumstances just by using {$.fileName$} in my template.

However, for one of the html files, I want to show a different name to the filename. How do I do this?

Example:  html file is called index.html but I want the filename to show as 'Home'.

I had hoped that a simple 'if' statement would do it but I can't seem to get that to work.  Anyone any ideas?

Fred Dibnah
Tuesday, September 9, 2003

Use the {$.headline$} CityScript placeholder rather than {$.fileName$}.  Give the index.html file a headline of "Home" and I think that will work.

George Illes
Wednesday, September 10, 2003

*  Recent Topics

*  Fog Creek Home