Fog Creek Software
Discussion Board




Knowledge Base
Documentation
Terry's Tips
Darren's Tips

Background Images

Is there an easier way to add a background image to a page? Since CD gives images a name different than the image itself, I had to add the image, copy the name it gives it, put that in the body tag and then delete the image. This seems to be more work than it should be.

Thanks.

Mike Murry
Sunday, November 04, 2001

That's how I did it too.

Alyosha`
Monday, November 05, 2001

Images will be extracted with whatever name you use for them. So if you have an image named "foo.gif" you can say <img src="foo.gif"> and it will work.

You lose two things when you do this:

* if you move or rename the image, the link breaks. When you use one of CityDesk's "magic" PTMFOG names it will be renamed for you automatically
* you won't see the image when you edit the HTML file or template from CityDesk, because CityDesk doesn't know that it has to pull it out of the database for you if it doesn't see the "PTMFOG".

Joel Spolsky
Monday, November 05, 2001

We've got a fix for this coming up in Beta 5...

In the main window, you can right click on an image and choose "Copy Magic Name". This does two things. First, it copies the magic PTMFOG... name onto the clipboard so you can paste it into an IMG tag in your external editor. Second, it extracts the image into the temporary directory where the external editor is running so that it actually shows up there when you insert it.

Beta 5 is coming on Monday.

Joel Spolsky
Wednesday, November 21, 2001

*  Recent Topics

*  Fog Creek Home