Fog Creek Software
Discussion Board




Knowledge Base
Documentation
Terry's Tips
Darren's Tips

Bug in CityDesk 2.0.19 / template views

Before posting this, I first checked the forum for similar effects, found:

http://discuss.fogcreek.com/CityDesk/default.asp?cmd=show&ixPost=9099

BUT: It doesn't work for me!

DID: opened a template in html view. Starts of with

<html><head><title>{$.headline$}</title><meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
<script language="JavaScript">
<!--
function swap_img(image) {
  var src = image.src
  var len = src.length
  var temp = src.substring(0, len-4)
  temp = temp + "_h.gif"
  return temp
}
function restore_img(image) {
  var src = image.src
  var len = src.length
  var temp = src.substring(0, len-6)
  temp = temp + ".gif"
  return temp
}
//-->
</script>
<link href="PTMFOG0000000019.css" rel="stylesheet">
<meta content="{$.keywords$}" name="keywords">
<!-- commented out, because CityDesk can't encode the text :( //-->
          <!-- <meta content="{$.teaser$}" name="description"> //-->
</head>
 
<body alink="#336699" bgcolor=#003366 link="#336699" vlink="#336699">

<!-- (and so on, and so forth) //-->
</body>

------------------------------------------------------------

next, I changed to normal view. BANG: blank page!
so I changed back to html view...

EXPECTED: to see the original code (as above)

BUGGY BEHAVIOR: my template was reduced to following code (everything above body was removed, and... well, WHATS GOING ON?)

<body style="BACKGROUND-COLOR: white; COLOR: black" topmargin=3 leftmargin=3 bottommargin=3 rightmargin=3> <script language="JavaScript" type="text/javascript">
//<![CDATA[
<!--
function swap_img(image) {
  var src = image.src
  var len = src.length
  var temp = src.substring(0, len-4)
  temp = temp + "_h.gif"
  return temp
}
function restore_img(image) {
  var src = image.src
  var len = src.length
  var temp = src.substring(0, len-6)
  temp = temp + ".gif"
  return temp
}
//-->
//]]>
</script></body>

Daren Thomas
Tuesday, August 26, 2003

BTW, closing the window (no, don't save changes) reverted everything back to the original code.

opening the template directly in normal view has the same results: the html code is altered according to description above - no way to see the my template in normal view ever again?

Daren Thomas
Tuesday, August 26, 2003

I have seen this occur on beta's, have only just downloaded gold and not been able to repro on my sites yet though.

However, probably somewhat related, is this one:

BEFORE:
<body {$.PageBody $} {$.PageBackGroundDark $}>

AFTER:
<body $} {$.PageBackGroundDark {$.PageBody >

Yeah, I know... if I used CSS I wouldn't need to do this. Still, it's a bug.

Tim Jones
Tuesday, August 26, 2003

*  Recent Topics

*  Fog Creek Home