Tinderbox User-to-User Forum (for formal tech support please email: info@eastgate.com)
http://www.eastgate.com/Tinderbox/forum//YaBB.cgi
Tinderbox Users >> Exporting from Tinderbox >> LinkTo parent of the original of an alias
http://www.eastgate.com/Tinderbox/forum//YaBB.cgi?num=1237297184

Message started by Paul Walters on Mar 17th, 2009, 9:39am

Title: LinkTo parent of the original of an alias
Post by Paul Walters on Mar 17th, 2009, 9:39am

I have an agent that collects notes from throughout the document (i.e., from a number of containers) based on the boolean state of a user attribute.  I am creating an export template for that agent and its children - the aliases of the original notes.  I would like to "linkTo" the parent of the original.

In other words, in this example structure I would like the HTML output of alias of note 1 to contain a link to Original Container.  

I understand "linkTo(parent)" (results in a link to the agent), and "linkTo(original)", but is there syntax such as "linkTo(original(parent))"?

Original Container
  • original note 1
  • original note 1


Agent
  • alias of note 1
  • alias of note 2




Title: Re: LinkTo parent of the original of an alias
Post by Mark Bernstein on Mar 17th, 2009, 10:26am

You want the argument of linkTo to be the parent of the original note.

    ^linkto(parent(original))


Tinderbox User-to-User Forum (for formal tech support please email: info@eastgate.com) » Powered by YaBB 2.2.1!
YaBB © 2000-2008. All Rights Reserved.