Fog Creek Software
Discussion Board




Knowledge Base
Documentation
Terry's Tips
Darren's Tips

build in anchors

i have contemplated adding a discussion forum to the site i administer with CityDesk. I frankly lack the programming skills and the design of most of the free forums i do not like.

But i want people to brainwrite, i.e. pose a projekt related idea, and let people ad their comments.

The way i envision to do that, is to start one article only, and let the people talk within the article.

At the top i want the names to be listed like this:

1 - Originator: Peter Pan on 10/31/2003
2- Comment by Susi Sue on 11/01/2003
..and so on

These lines at the top i want to assign an anchor to, that leads further down in the text, to where the comments start.

I can build those anchors in, no problem.


But i do not want the participants to be bothered with any html. So i would like to suggest to make anchors a build in option of CityDesk and integrate in the links options. Right know you can define external links and links within the CityDesk site, but not links within the same article.

That would be a great feature, wouldn´t it?

alex
Friday, October 31, 2003

i just found a solution here: http://www.telepark.de/2003/en/unterseiten/citydesk-community.html

There is a video on defining variables that enable the anchor.

Still, what if i could just highlight the text i want to link, then click on the link "Insert Link" Button where there is the new option "create anchor in article". If i select this option i would have to jump back to the text, highlight the text to where the link shall make me jump. then click ok - no typing required?

alex
Friday, October 31, 2003

Inserting Anchor tags in CityDesk Normal View:

First create the following 4 variables:

1st variable  href = <a href=”{$ .link $}
2nd variable  close = “>
3rd variable  final = </a>
4th variable  name = <a name”

Second surround your list items based on using 3 of the 4 variables as the following illustration shows;

{$ .href $}id1{$ .close $}list item stuff{$ .final $}
{$ .href $}id2{$ .close $}list item stuff{$ .final $}
{$ .href $}id3{$ .close $}list item stuff{$ .final $}
etc
etc

Third surround your “target stuff” using the 4th variable {$ .name $} as follows;

{$ .name $}id1{$ .close $}first target stuff{$ .final $}

{$ .name $}id2{$ .close $}first target stuff{$ .final $}

{$ .name $}id3{$ .close $}first target stuff{$ .final $}

etc.

etc.

Hopefully this will help some of you … I know that it did help me.

Thanks to Telepark [Partick] for this nice way of doing achors.

David Mozer
Saturday, November 01, 2003

OOPS: sorry -- the is the way this part should have read:

Third surround your “target stuff” using the 4th variable {$ .name $} as follows;

{$ .name $}id1{$ .close $}first target stuff{$ .final $}

{$ .name $}id2{$ .close $}second target stuff{$ .final $}

{$ .name $}id3{$ .close $}third target stuff{$ .final $}

etc.

David Mozer
Saturday, November 01, 2003

OOPS again - to correct the following:

1st variable  href = <a href=”{$ .link $}#

David Mozer
Saturday, November 01, 2003

yes this works, thank you.

Same as in the video, but please note:
name variable should be: <a name=".

alex
Sunday, November 02, 2003

*  Recent Topics

*  Fog Creek Home