Fog Creek Software
Discussion Board




Knowledge Base
Documentation
Terry's Tips
Darren's Tips

Making child contents links

Hi,
I have a 3 level deep structure that I need to maintain on both the authoring and published sides and I want to list links to only the child folders that are one level down in the "index" article of the parent.

I'm have included the names of the children in the extra1 field of the parent but need a cdscript for my template to turn these into links. The structure is;
Site
  Component
      Topic
        Procedure

I tried;

{$forEach x in (and(keywordContains "Topic")(filename "index"))$}
{$x.extra$}
{$next$}

but this just marks up a link from the article to itself. I'd like to do;

{$forEach x in (and($.extra1$)(keywordContains "Topic:))$}
{$x.headline$}
{$next$}

I'm no good at this stuff but want to persist and learn something.

Thanks - Ian

Ian Smith
Friday, June 27, 2003

The short answer is: You can't with CityScript but there are ways to accomplish it. If you want a general script that will account for any multilevel future possibility - you can't. If you want to meet a specifc requirement for a  specific site, you can.

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

Many folks have requested it as a feature.

tk
Friday, June 27, 2003

*  Recent Topics

*  Fog Creek Home