Fog Creek Software
Discussion Board




Knowledge Base
Documentation
Terry's Tips
Darren's Tips

Escape & char in headline?

Hi all,
this is my first posting here. I'm developing a site in CityDesk for the company I work for. I really like the CityDesk concept, but i have a problem right now:

I would like to be able to insert headlines like
Företags­beskrivning
to get a soft hyphen in words, but CityDesk keeps converting them like
Företags­beskrivning

Is there a way to escape the & in headlines? Or another way around?

Johan Franzén
Thursday, January 30, 2003

&amp is the html escape for &
You should see the &amp only in html view.

Adriaan van den Brand
Thursday, January 30, 2003

Yes, but the & I type appear in the headline, under the Properties tab in the article editor. The headline field is always edited in 'Normal View', at least afaik.

Johan Franzén
Thursday, January 30, 2003

I don't think you can solve your problem in the headline.  In one site I need to italicize some words in an occasional headline so I use an extra field for my all of my headlines.

Right now there is not an HTML view of the extra fields, but I think they can contain whatever HTML you need.  So, create the html in an article then paste it (I paste from normal view) into the extra field to use as your headline.  I keep an unpulbished "scratchpad article" on my sites just to do such editing.

tk
Thursday, January 30, 2003

For this reason, I have proposed some cityscript extensions (escape/unescape) long, long time ago.

Adriaan van den Brand
Friday, January 31, 2003

Can you also create a variable called AMP and define it as &Amp;

Then in the headline write:

This {$ .AMP $} That

to produce

This & That?

Joel Goldstick
Friday, January 31, 2003

The variable idea give you the literal &Amp; in the headline, not &.

tk
Friday, January 31, 2003

Try the ALT way. Soft hyphen is ALT+173.

( & is ALT+038 by the way)

Jorgen Brenting
Friday, January 31, 2003

The ALT way is good, but may not translate to other OS's.

If you don't care & you're in Windows, find the Character Map in Accessories (if it's installed). It will give you a complete list of every character available with any given font. Plus if you click on the character it'll show the keystrokes on the bottom.

Note that you need to use the number pad for these keystrokes.

www.marktaw.com
Tuesday, February 04, 2003

*  Recent Topics

*  Fog Creek Home