I figured out how to filter through a list using a field and <$edit-text>, 
but now I want to do the same thing using a template.

Here is my working non-template example:


Tiddler Title: blah1
\define thisList()

<$list filter="[{!!title}tagging[]$(thefilter)$]">
<ul>
<li><$transclude/></li>
</ul>
</$list>
\end 

<$set name="thefilter" value={{!!dasfilter}}>
<<thisList>>
</$set>

field: dasfilter: tag[blah2]


In another tiddler..and when I type in this the list in blah1
updates to reflect the changes....because of this:

TagFilter <$edit-text tiddler="blah1" field="dasfilter"/>

---

Now I have an existing template and sub template such as follows where I'm 
trying to do the same thing:

Tiddler Title: meTemplate
Company: <$view field="company"/><br/>: 
Title: <$view field="title"/><br/>
Time Period: <$view field="startdate"/>-<$view field="enddate"/> <br/>
Location: <$view field="location"/> <br/>

~TagFilter: <$edit-text tiddler="DutiesFiltered" field="dasfilter"/>

{{!!title||DutiesFiltered}}



Tiddler Title: DutiesFiltered
\define showDuty()
<ul>
<$list filter="[{!!title}tagging[]$(thefilter)$]">
<li><$transclude/></li>
</$list>
</ul>

\end

<$set name="thefilter" value={{!!dasfilter}}>
<<showDuty>>
</$set>


field: dasfilter: tag[people-skills]

...and then to use both templates I'll use a tiddler like:

Tiddler Title: SeveralOfThese
{{!!title||meTemplate}}
field: company: Someplace
field: enddate: somedate
field: jobtitle: somejob
field: location: someplace
field: startdate: someotherdate

But I don't seem to be able to replicate the functionality of adding 
tag[sometag]tag[someothertag] to my searchbox so that I can find only the 
duties I'm looking for in the template / sub template.

Is there some way of doing this?

Thank you, 
    Andrew J. Leer

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/89712be4-6893-4833-9a92-7e1505b66780%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to