John’s Adventures

A CityDesk Weblog Template

A screenshot of the template in actionIn case you’re interested in using CityDesk to create a weblog, then I thought I’d share a template I created back in the day that should server as a good starting point. If you’re interested then follow the link below:

To personalise the template for your own uses you’ll want to change the following variables (View > Variables…):

  • SiteName – Contains the text for the banner at the top of every page.
  • SiteAuthor – Your name!
  • SideBarLinks – Contains the links that appear on the left-hand side of every page.

10 Comments on “A CityDesk Weblog Template”

Hi

I’m trying to put a background image on the weblog. I’ve inserted background-image: url(”blog/bluebg.gif”); into the stylesheet. This works fine for the index page but not for any others. I’ve played with a variety of /blog, ../blog, but cannot find the right combination to get this to work on all pages. Any help appreciated.

Rgds

Bob

Ah, this looks like it’s due to relative file naming. Easy to fix. Instead of putting:

background-image: url(”blog/bluebg.gif”)

Copy the magic name of the gif file (right-click > Copy magic name) and put that instead of blog/bluebg.gif. For example:

background-image: url(”PTMFOG0000000028.gif”);

will use the permalink graphic as the background in the sample template.

Hope that helps!

I could have spent a lifetime trying various combinations and I would never have tried that. Works a treat – thanks for the help.

Terry Beasley said on
December 28th, 2002 at 08:33 | Reply

I’m trying to use this log, and I can’t figure out how you archive months. I’ll add a month to the archive, copy the script from the previous month, and then when i preview it I get an error everytime. I hope I am being specific enough. Can you help?

Terry, first of all make sure you copy and paste the script in the ‘HTML View’ (button on the bottom). Then change the dates on line 2 (the after and before ones) to match the month of interest. Then hit the properties tab, put ‘(nonblogentry)’ including the brackets into the ‘Keywords’ field and change the ‘Template’ to ‘nonblogentry’.

If that still doesn’t work then e-mail me your template file and I’ll figure out what’s going on.

I meant to get around to writing some documentation on it so let this be the kick up the backside I need!

John, that’s a great blog template. Very slick. I got my site up and running in about an hour. http://david-watts.com Thanks for making the template available to everyone!

David.

Not a problem, glad to be of service!

Hi, I think I having problems. How do I edit your template? What kind of extention d you have .CTY??? Is it some kind of programing language? Do I need special editor? Well, I know a little about webdesign, and just trying to add a weblog to my homepage …

Eh, you go and download the windows application ‘CityDesk’ from http://www.fogcreek.com/citydesk then open my template (which has a .cty extension). It’s a CityDesk template and therefore requires CityDesk to work with it.

Hi John, it looks like you’re using {$extra2$} for stylesheet overrides. Is that correct? Do you use any other fields in this way?
David.

Leave a Comment