Fog Creek Software
Discussion Board




Knowledge Base
Documentation
Terry's Tips
Darren's Tips

Two locations cost nearly double web-space

Hello friends of CD,

I just started another web-space with CD and published two locations - standard and print-out. Now both seem to have a subdirectory named 'images'. Thus, the web-space used is doubled. This isn't nice since cheap web-space is very much limited.

Is there any way, how I could force CD to use only one sub-dir with all the (bigger) images in.

Thanks for help!

Regards, Steffen
http://www.die-steinhaeuser.de

Dr. Steffen Steinhäuser
Monday, January 12, 2004

How about using CSS instead to provide a printable version of your site. See:

http://www.alistapart.com/articles/goingtoprint/

David Watts
Monday, January 12, 2004

Hi David,

after reading your CSS-hints and -tutorials I will give it a try and report sucess here.

At this point, it is again of a big advantage to have content and desgn & structure well seperated in CD. I already have CSS running. Now I have to label the navigation and side bar in a way I can switch it of before printing.

However, I will loose some visitors using netscape, but save a lot of effort and webspace. Thanks!

CU, Steffen

Dr. Steffen Steinhäuser
Monday, January 12, 2004

Hi David,

in principle your idea with CSS and 'display: none' is preferrable. However, the shadow.cty is hard to change in a way, that the outcome is as you suggest. Since it uses a kind of cascading tables, it was unsuccessful in the first attemp to non-display both, the menu and the sidebar.

I will give it another try and also try to find some equally fascinating styles for CD.

Regards, Steffen

Dr. Steffen Steinhäuser
Tuesday, January 13, 2004

OK here's another idea that combines old-fashioned table-formatted layout and CSS print capabilities. I've implemented it at my site, http://rltvolunteers.org

Basically, every HTML page has two copies of the text of the page (ie two {$ .body $} entries) in the CityDesk template used.

The first one is the fully formatted version complete with tables to do the layout. The second one is the {$ .body $}, without any of the {$ .body $} formatting.

With that set up, for the screen version, I have display:none for the second print-only {$ .body $}. For the print version, I have the first {$ .body $} set to display:none plus a few other DIVs also set to none - such as the menu bar and large banner GIF.

Check out any of the pages in http://rltvolunteers.org (pick a page with a small body to see the layout).

David Watts
Tuesday, January 13, 2004

Hi David
Great idea, but it's very hard to see anything at your page right now. The layout is badly messed up i both IE and Firebird.

Jorgen Brenting
Wednesday, January 14, 2004

Looks fine in IE 6.0 to me

MaisOui
Wednesday, January 14, 2004

Jorgen, I hope its not messed up! I spent a fair bit of time ensuring it would work with modern browsers - IE, Mozilla, Opera, Safari, Netscape 7. What browser were you using?

I know the menuing system I use doesn't work with Netscape 4.x however, but that's a tiny fraction of my target audience (based on logs of the old design).

David Watts
Wednesday, January 14, 2004

Fwiw, here's my new CD site http://www.bio-gaertner.de/Articles/index.phtml , which uses style sheets to automatically reformat for printing (try Print Preview to see the effect - the navigation bar disappears, and in the actual articles, e.g. http://www.bio-gaertner.de/Articles/Pflanzen/Obstbaeume/Pfirsichbaume.html , a copyright notice appears at the top).

Vic
Saturday, January 17, 2004

*  Recent Topics

*  Fog Creek Home