Scott,

Quick tip, in your lists above the `<<currentTiddler>>` changes according 
to the list filter, that is why {{!!title}} refers to the tiddler in the 
list (result of the filter). However you could always use another 
variable=other-tiddler in the list statement to keep referring to the 
original tiddler, but then you will have to use the <<other-tiddler>> 
variable say in the viewWidget to access the other fields in 
<<other-tiddler>>.

At anyplace in your wikitext you can set the current tiddler to another, 
using the tiddler widget, and this can be driven by a variable 
<$tiddler tiddler=<<other-title>> >

In here <<currentTiddler>> = <<other-title>> and {{!!title}} refers to the 
title in <<other-title>>

</$list>

Also if you know how to access a tiddler and its field with a filter you 
can wrap that filter in triple Curly Braces
eg
{{{[<other-tiddler>get<fieldname>]}}}

Ask more questions once you explore these tips.

Tony


On Monday, June 22, 2020 at 1:16:34 PM UTC+10, Scott Masterson wrote:
>
> Hello All,
>
> This is my first post here, so please forgive my naiveite and beginner 
> status.  BLUF: I'm trying to create a prototype for a notification system 
> for a relatively complex military organization, and I'm trying to figure 
> out how to reference the fields of one Tiddler, while transcluding another 
> Tiddler field into a list in that Tiddler?
>
> Now here's the long-winded version.  Each *Unit Tiddler* in the 
> organization has a field with that unit's ID, called the *unit-opfac*, as 
> well as a field for its parent unit, called the *parent-opfac*.  A *Brief 
> Tiddler* can be created (from a button generating a Tiddler based on the 
> Brief Template) at any unit level and will be tagged with *[Brief]* as 
> well as its *unit-opfac* and its *parent-opfac*.  I want to use the *checkbox 
> *widget to allow each brief to be promoted up the organizational chain by 
> being tagged with the unit's *parent-opfac*. This will allow someone at 
> each unit level to promote a brief up the chain at will.  I wrote the below 
> code and thought I was doing great - until I realized that the 
> *parent-opfac* and *unit-opfac* fields that I was transcluding were from 
> the *Brief Tiddler*, and not the *Unit Tiddler*.  So, how can I 
> filter/modify tags that are based on fields in the Unit Tiddler, rather 
> than those in the Brief Tiddler?  I think the logic I've written will do 
> what I want (see below), IF I can figure out how to reference the correct 
> fields.  Thanks in advance!
>
> Scott
>   
>
> *Unit Tiddler*
>
> *Tags:* Title of Parent Unit
>
> *Tiddler Text:*
>
> ! Promoted Briefs
> <$list filter=
> "[!has[draft.of]tag[Brief]tag[{!!parent-opfac}]tag[{unit-opfac}]sort[created]]"
> >
>     <div>
>         <$checkbox tag={{!!parent-opfac}}> __<$link to={{!!title}}><$view 
> field="title"/></$link>__</$checkbox>
>     </div>
> </$list>
>
> ! Incoming Briefs 
> <$list 
> filter="[tag:[Brief]tag:{!!unit-opfac}!tag[{!!parent-opfac}]sort[created]]">
>     <div>
>         <$checkbox tag={{!!parent-opfac}}> <$link to={{!!title}}><$view 
> field="title"/></$link></$checkbox>
>     </div>
> </$list>
>
> *Fields:*
> parent-opfac: 14-00000
> unit-opfac: 14-33296
>
>
> *Brief Tiddler*
>
> *Tags:* Every unit-opfac the Brief Tiddler is promoted to.
>
> *Tiddler Text: *Some briefing text...
>
> *Fields:* 
> parent-opfac: 14-33296
> unit-opfac: 14-33296-P
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/8bb444c2-25e4-4f1b-b43f-b9fa81b45eb9o%40googlegroups.com.

Reply via email to