Fog Creek Software
Discussion Board




Knowledge Base
Documentation
Terry's Tips
Darren's Tips

ASP, conditional CSS, City Desk, voila!

I discovered CityDesk in 2002 when I had a client who wanted a real estate site that she wanted to maintain herself and knew squat about HTML.

I built one of the first CD sites for real estate listings and got a lot of nice feedback on the way it looked and functioned. In fact, I still see links to it mentioned here in the forum and on some ancillary sites that focus on CityDesk. The url is http://www.lakemonticelloproperties.com/.

This client likes having a lot of sites. She had someone else make her two more (non-CD sites). One of them displayed the listings off Lake Monticello in a frame, which looked pretty odd.

She approached me recently and asked me to a) make her yet another new site, and b) be able to display Lake Monticello's listings on all her sites, so she can update them in just one place--her CityDesk site.

I'm really picky about design. The new site I made her has a totally different look and feel from Lake Monticello. I wanted the look of the listings to match the look of the new one. The third site has a different look as well, just to complicate matters.

It took some doing, but I have succeeded in accomplishing my goal. I had to totally rework Lake Monticello to make it function as the "master site", but it was time for an upgrade to CD 2.0 anyway. It looks the same, just functions differently.

To see it in action:
http://www.lakemonticelloproperties.com/listings.htm
http://www.patsystrongteam.com/listings.htm
http://www.fluvannacountyproperties.com/current_listings.htm

(I made the first 2. Someone else made the third one)

The magic happens when you click on a thumbnail to see the detail page. It's all the exact same info. It just looks different!  All very seamless for the user.

If someone's interested in the nitty-gritty of how exactly this is being done, I can post some code examples.  I just wanted to pass along the idea that CityDesk, other scripting languages (I'm using ASP), and CSS can all play nicely together.

Debra Weiss
Saturday, September 11, 2004

Hi, I visited your pages and immediately got this when I clicked on a picture (same for all pictures except for the image name in the last line):

Microsoft VBScript runtime error '800a000d'
Type mismatch: '[string: ""]'
/currentlistings/653BrokenIsland.asp, line 10

Jorgen B.
Saturday, September 11, 2004

I publish four real estate sites, using the same information but different looks, using CityDesk Template Families.  I have a template family for each site, publish to a location on disk and have a batch file ftp the files to each site.

The workflow goes like this: Add a new real estate listing to the listing folder, fill out the fields, publish to disk, and run the batch file to keep four sites in sync with the same information.

David Burch
Saturday, September 11, 2004

Debra explains how she did it:

http://tk-jk.net/city/Bagofscripts/DebsIFRAMEtrick.txt

tk
Wednesday, September 15, 2004

Debra writes: 'Click on the picture to view the full listing.'

Am I the only one getting a runtime error on every single image on the site?

Jorgen B.
Thursday, September 16, 2004

The work for me in IE, Netscape and Firefox.

tk
Thursday, September 16, 2004

tk,
Interesting/strange - I use the same browsers.

Jorgen B.
Thursday, September 16, 2004

When I click an image I get this reference:
http://www.lakemonticelloproperties.com/currentlistings/23OldHomestead.asp?domNum=

As you can see the domNum is missing at the end of the line.

If I manually insert a domNum between 1 and 3 (I got that from tk’s site) so the line looks like this:
http://www.lakemonticelloproperties.com/currentlistings/23OldHomestead.asp?domNum=1

it works fine.

Just thought I’d solve the puzzle for my own sake. *Why* the domNum is missing should interest Debra though.

Jorgen B.
Saturday, September 18, 2004

Jorgen, it appears it may be local to your machine because the DomNum=1 is displayed in both IE and Firefox for me.

Ron Lane
Saturday, September 18, 2004

Weird, because I'm looking at it in IE 6, Netscape 7 and Firefox 0.9.2 and I'm see all the sites with no errors.

Debra Weiss
Sunday, September 19, 2004

It’s the firewall that excludes the domNum. I deactivated the firewall and gave it a last try.

You can say that this makes the error local to my machine, but I’m not the only person with a firewall between my browser and the Internet.

Jorgen B.
Sunday, September 19, 2004

I use ZoneAlarm as my firewall, and it's obviously not giving me any problems. However,  I have heard similiar comments from someone using Norton, I think.  They were having a trouble accessing LOTS of sites, not just this one. 

Thanks for going the extra mile to figure it out!

Debra Weiss
Sunday, September 19, 2004

*  Recent Topics

*  Fog Creek Home