Fog Creek Software
Discussion Board




Knowledge Base
Documentation
Terry's Tips
Darren's Tips

Template question

First - I love the software. Very easy to work with once one have done the templates and structure of the site.

I want to make a template that has liks to the next and the previous article. So I have a folder containing the articles, all associated wih the same template - and they all have links to the next and prev. article in that folder. Based on sort-order or date or somthing else, doesnt matter.

Havent found out how tho, but it doesnt sound like rocket-sience to me.. :)

Any suggestions?

Many thanks.

Fredrik Jacobsson
Monday, December 09, 2002

This is an old request, the short answer is you can't for now.

The Fog folks discuss it here:

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

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

This isn't about "previous / next" but it's a good discussion on the "articles from this folder" idea.

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

tk
Monday, December 09, 2002

Ouch. ok, Im hoping for future versions then :)

Altho those articles was a year ago, and if it's not implemented by now they arent likely to be either?

My workaround for now is to utilize the about-field and put a couple of linked images there. And put a thingy in the template to check if the field is empty or not - if not, insert those links. (I wanna a link to both previous and next on the top and bottom of each page). A bit too much manual work on each page tho - but nothing much to do about it then.

Thanks for the quick answer

Fredrik Jacobsson
Monday, December 09, 2002

I have one for PHP. This requires "rocket science", but works for me ;-)

Adriaan van den Brand
Monday, December 09, 2002

Actually...

CityDesk has only had a minor feature upgrade and some bug fixes. No major feature upgrade to CityDesk has been made yet, so I do think that we COULD see something like this in the future...

-austin

Austin Ziegler
Monday, December 09, 2002

The key question here is: What is 'next' and 'previous' article anyway? They are not necessarily the next and previous file in the folder. The logical 'next' from the users point of view could easily be in a different folder or three files down the line after the site has been up for a while.

Jorgen Brenting
Tuesday, December 10, 2002

Well, for me - it could be articles sorted by date.
Sure one could have it configurable in a number of ways.

Fredrik
Tuesday, December 10, 2002

I've been looking to solve the same problem for a bunch of FAQ articles I'm writing.

After a couple hours I came up with an answer that works for me. The following is a link to a site where I put up an example - not particularly well documented. I'll add more info and perhaps some interesting modifications if anyone shows interest.

  http://www.pearlsof.com/pearlsof/city_desk/nav_example/ 

Joe McLain
Friday, December 20, 2002

Naturally my link does not work ... maybe this one will:

http://www.pearlsof.com/pearlsof/city_desk/nav_example/index.html

Joe McLain
Friday, December 20, 2002

*  Recent Topics

*  Fog Creek Home