Fog Creek Software
Discussion Board

Knowledge Base
Terry's Tips
Darren's Tips

Formatting in Headline and Author fields

As a new feature in 2.0.3

the fields Headline and Author are formatted.  It works with buttons, but the "Format" menu is disabled...

I run into problems using these fields within a javascript like this:

{$foreach x in (all)$}
tree.push(new Node("{$.abslink$}","{$x.headline$}",0,"",0));

because unexpected linefeeds(!)and formatting tags (<p>...</p>) are inserted making the javascript unusable. I propose
- not to insert linefeeds
- to implement an option to turn formatting off or new variables not containing the formatting.

I would like to finish a complex navigation system in JavaScript with CD, but release 2.0 makes it more difficult now (I have to use other fields, probably duplicating entries.)

btw: CD is great !!

Dieter Spahni
Friday, May 23, 2003

I am running into the same problem:
I want to use Extra1 or any other Article variable field to store a URL, that can be referenced with

This won't work, because the URL is embedded with <p> </p> statements.

Also, I would like to generate a text-only version of my website: Both, Teaser and Body have also <p> </p> wrappers.

Thus, I also would like to have a means to stop CD creat <p></p>...

Volker Halstenbach
Saturday, May 24, 2003

Temporary workaround: If you put the HTML in straight through the Access database, and don't touch it in CD, it won't be reformatted.

Mike Gunderloy
Saturday, May 24, 2003

To me it's a new BUG to format the headlines automatically with <P>...</P>.

The headline-field gets useless:
To format the title of an article gets much more complicated, instead of <H1>MyTitle</H1> CD creates <H1><P>MyTitle</P></H1>. The headline-Tag also can not be used for the HTML-TITLE-Tag anymore.

To use an extra-field for workaround is a shame,
I hope they will change that back soon (or make it configurable as suggested).


Stephan Germain
Monday, May 26, 2003

known bug, will be fixed.

The correct CityDesk behavior is if any field contains exactly one paragraph, the <p>...</p> is stripped away.

Joel Spolsky
Tuesday, May 27, 2003

*  Recent Topics

*  Fog Creek Home