Fog Creek Software
Discussion Board




Knowledge Base
Documentation
Terry's Tips
Darren's Tips

Folder Names

Hi, I want to include something like the following:

You are here: start : foldername1 : subfoldername1 : headline


so. the headline is no problem, but the foldernames (is like the path to the article) I can't get with CDScript, right?

Maybe I work something out by parsing the location string with javascript, but It world be nice, if CD provides us with such functions or variables.

Did anyone have a good idea how to work around that problem?

Raoul
Friday, October 15, 2004

These are usualy called breadcrumbs.
There's an article in the knowledge base on how they can be created in CityScript.
http://www.fogcreek.com/CityDesk/kb/howto/Breadcrumbs.html

There are about a zillion examples on the web of how to do it in javascript or php.  As you suggest this is usually done by parsing the url of the page.

Ken McKinney
Friday, October 15, 2004

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

me
Sunday, October 17, 2004

thanks for your answeres... will try it with js

Raoul
Tuesday, October 19, 2004

I just uploaded a template, paper.cty to templates.fogcreek.com.  It shows how to integrate Brand's JavaScript navigation bar and some other stuff as weel.  I don't see it listed there yet; until it is, you can get it at http://southernnewmexico.com/paper.cty.  Preview at http://southernnewmexico.com/paper/

The template is based upon a capstone project for college that was delivered as a web site.  The web site used a lot of tips and tricks blatently stolen from this forum and various other sources.  I reduced it to outline form so that it is almost a template.

It includes the Poor man's Javascript navigation bar by Adriaan van den Brand (http://www.zonnet.nl/adriaan_brand), elements of other CityDesk templates from FogCreek and John Conners'(http://johnsadventures.com/general/About.html), and Next and Previous article links lifted from Darren Collin's example.

Don't switch into normal mode when editing templates. CityDesk variables are used for color attributes which breaks in XHTML.

David Burch
Tuesday, October 19, 2004

I really like the preview of paper.cty but I get a 404 error trying to download if from  http://southernnewmexico.com/paper.cty and the template still hasn't shown up in http://templates.fogcreek.com .  Is this template still available?

Lew Shieber
Thursday, October 21, 2004

Sorry,

It is a 'Nix server, so case matters.  The proper URL is http://southernnewmexico.com/Paper.cty

David Burch
Thursday, October 21, 2004

Thank you. I can see that template is going to be very useful to me.

Lew Shieber
Friday, October 22, 2004

*  Recent Topics

*  Fog Creek Home