I have spells tagged as belonging to certain classes.  I want to create a 
display which list of spells with a dropdown to filter by a class (or not).

<div class='input'>
  <label>Filter by Class</label>
  <$select field='selected_class' default='All'>
    <option value='All'>All</option>
    <$list filter='[tag[Class]]'>
      <option value=<<currentTiddler>>><$view field='title'/></option>
    </$list>
  </$select>
</div>


<ul>
  <$list filter="[tag[Spell]tag{!!selected_class}]">
    <li>{{!!title}}</li>
  </$list>
</ul>


I can't figure out how to get the "all" portion to work.  I can't find seem 
to do tag[*], nor can I figure out how to dynamically construct a query 
string to be used as a filter expression (it seems I can not dynamically 
select operators, only parameters).

Any help appreciated!

-- 
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 http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/b68a57c4-c474-40e9-8297-41d3a11c7f44%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to