I think what you what is a select tag with option groups inside.

I created 3 tiddlers with tags GroupA and GroupB variously assigned. Each 
tiddler had a field called eponymously "field". Each tiddler also had a 
field called "findme" so I could limit my list to to just the tiddlers of 
interest. This code then produces a select widget with a group for tag 
GroupA and GroupB, with their field contents specified inside of each group.

<$select tiddler="$:/temp/tag1">
   <$list filter="[has[findme]tags[]]" variable="mytag">
<optgroup label=<<mytag>>>
<$list filter="[tag<mytag>get[field]]" variable="field">
      <option value=<<field>>><<field>></option>
 </$list>  
</optgroup>
</$list>

</$select>



Overall, it would probably be better if you explained your actual use-case 
rather than looking for detailed technical recipes.

Good luck!
Mark 

On Friday, November 25, 2016 at 11:52:20 AM UTC-8, Jon wrote:
>
> Hi Riz,
>
> That produces the dropdown containing a list of tiddlers tagged with 
> "family" but the field values of "keyword" are also contained within the 
> box rather than being placed in a list outside it.
>
> Thanks
> Jon
>
> On Friday, 25 November 2016 17:03:29 UTC, Riz wrote:
>>
>>
>> Try this
>>
>> <$select tiddler="$:/temp/tag1">
>>
>>    <$list filter="[tag[family]]">
>>       <option value={{!!keyword}}><<currentTiddler>>
>> <br>@@color:red;{{!!keyword}}@@</option>
>>    </$list>
>> </$select>
>>
>>
>>

-- 
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 post to this group, send email to [email protected].
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/8c31de7f-2398-4849-a59c-0a40af24a37d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to