Fog Creek Software
Discussion Board




Knowledge Base
Documentation
Terry's Tips
Darren's Tips

External .css

I published an index.html and a couple of articles at http://www.weaverlane.com/smallcase/index.html linked to an external .css file (smallcase.css) in the main directory. The column on the right is only picking up the first of the articles and leaves the second on the bottom of the page. I haven't tried other ways of inserting style commands, and perhaps I should because CD won't upload a .css file either.

Ray Lutz
Sunday, October 28, 2001

CityDesk will upload a .css file.  It will upload any file that is in the site.  Just choose Insert->File and plop your .css file in there.

As far as the foreach loop not picking up all of your articles, can you post a snippet from the .html doc that includes the foreach loop?

Michael Pryor
Sunday, October 28, 2001

I hope you've got a football game on in the background and a cold beer close by because it's Sunday afternoon in Kailua: I'm playing with CityDesk but you're working late this weekend!

This is the foreach loop snippet.

<div id="rpanl"><P>   
{$foreach x in (all)$} </P>
<p class="smtxt"><A href="{$x.link$}">{$x.headline$}</A><BR>
{$setDateTimeFormat "English" "dd MMM, yyyy" "hh:mm"$}{$x.filedDate$}</p>

Ray Lutz
Sunday, October 28, 2001

Actually if you post a little bit more of the snippet you can see the problem...


<div id="rpanl"><P>   
{$foreach x in (all)$} </P>
<p class="smtxt"><A href="{$x.link$}">{$x.headline$}</A><BR>
{$setDateTimeFormat "English" "dd MMM, yyyy" "hh:mm"$}{$x.filedDate$}</p>
</div>
{$next$}



notice the {$next$} is after the </div> so the template is going:

<div id="..">
  article 1 stuff
</div>
  article 2 stuff
</div>
  article 3 stuff
</div>

move the </div> outside the {$next$} statement

Michael Pryor
Sunday, October 28, 2001

Done and done. Works as documented. Thanks!

Ray Lutz
Monday, October 29, 2001

*  Recent Topics

*  Fog Creek Home