Fog Creek Software
Discussion Board




Knowledge Base
Documentation
Terry's Tips
Darren's Tips

New feature : pseudovariables and iteration

Another one for the huge list of suggestions ...

I'd like to be able to use the values of some of the publication settings, mainly to construct full paths to the current part of the publication tree automatically. For instance, though this may not be the best implementation, pseudovariables such as :

{$.pub_language$}
{$.pub_template_family$}
{$.pub_audience$}
{$.pub_preview_url$}

and even :

{$.fullabslink$}

ie, with the current language / audience / template family prepended.

Similarly, to construct links to other parts of the tree it would be useful to be able to iterate through these variables where this makes sense, e.g. :

{$foreach x in (pub_language)$}
... stuff to construct one link of a multilanguage linkbar ...
{$next$}

You can get some of the effect with variables and/or dummy articles, but it's a nasty kluge with maintenance problems if you forget what you've done.

Michael Wild
Friday, January 03, 2003

*  Recent Topics

*  Fog Creek Home