Welcome, Guest. Please Login
Tinderbox
  News:
IMPORTANT MESSAGE! This forum has now been replaced by a new forum at http://forum.eastgate.com and no further posting or member registration is allowed. The forum is still accessible via read-only access for reference purposes. If you wish to discuss content here, please use the new forum. N.B. - posting in the new forum requires a fresh registration in the new forum (sorry - member data can't be ported).
  HomeHelpSearchLogin  
 
Pages: 1
Send Topic Print
Link duplicate notes (Read 1757 times)
Steve Thorpe
Full Member
*
Offline



Posts: 6
London
Link duplicate notes
Apr 14th, 2014, 11:41am
 
Hi all,

I have a document with a number of instances of notes with duplicate $Name. I would like to link them from one folder, the 'assets' folder where I have embellished each note with data, to any instance where that duplicated $Name is found in the rest of the document.

I guess I would need to create an agent that 1) searches the 'assets' folder band then 2) searches the rest of the document for duplications and then 3) creates a link from the note in the 'assets' folder to the duplicate and assigns it a link type.

My problem is setting the agent to start from the 'assets' folder. Any ideas?

Thanks,

Steve
Back to top
 
 
stevenjthorpe   IP Logged
Mark Anderson
YaBB Administrator
*
Offline

User - not staff!

Posts: 5689
Southsea, UK
Re: Link duplicate notes
Reply #1 - Apr 14th, 2014, 1:41pm
 
If you want each child of 'assets' to link to every discrete instance of a note with the same $Name, use this $Rule:

linkTo(find($Name=$Name(that)&!$IsAlias))

The $IsAlias part of the find() means it ignores aliases (e.g. in agents) which likely you don't want to link to. If not, you can leave out the "&!$IsAlias" bit of the rule.

Unless the children of 'assets' already use prototypes and/or already have rules, it would be good to give them all a common prototype and apply the new rule to that.

More on linkTo().
Back to top
 
 

--
Mark Anderson
TB user and Wiki Gardener
aTbRef v6
(TB consulting - email me)
WWW shoantel   IP Logged
Pages: 1
Send Topic Print