Hello Mark (and all others),

Many many hours of experiments and googling later....
I found out now, how I can show only the tags I want to show and to have 
checkboxes for each tag I want to search by :-)

I have now only 3 issues anymore. And for that I found just ..... *nothing*. 
Nothing how I could solve that.


   1. The checkbox for the tags seems not to be fixed to the tag-title, to 
   which it belongs. That means, if there isn't enough space anymore for the 
   tag-title, the tag-title moves to the next line (if it is without space in 
   it). But the checkbox doesn't move to the next line (on suryas-testwiki it 
   is the tag "E:Anewcharacter"). And if the tag-title has symbols or spaces 
   in it, it is moved only partly to the next line. What can I do, that the 
   tag-title is moved alltogether and with the checkbox to the next line?
   2. If no tag is choosed, there are ALL tiddlers listed. In this way, 
   this search-tiddler gets very very long. How can I solve it, that there is 
   no tiddler shown, when I open that search-tiddler and have no choosen tag?
   3. At the end of the search-tiddler it shows </$vars>. Where is my 
   mistake?
   
You can see it on 
http://suryas-testwiki.tiddlyspot.com/#MultipleTagSearch%20by%20Mark.

The full command in that search-tiddler is now:
\define addPrefix() +[tag[
\define addSuffix() ]]
\define finalFilter()  [all[tiddlers]!is[system]] $(myfilter2)$ +[regexp[^$(
additionalCriteria)$]]

<div style="background:plum;">

<$reveal type="nomatch" state="$:/state/SampleRevealMTSG&W" text="show">

<$button set="$:/state/SampleRevealMTSG&W" setTo="show">Show tags for @
@color:green;"Character"@@</$button>
</$reveal>
<$reveal type="match" state="$:/state/SampleRevealMTSG&W" text="show">

<$button set="$:/state/SampleRevealMTSG&W" setTo="hide">Hide tags for 
@@color:red;"Character"@@</$button>
&nbsp;&nbsp;&nbsp;<$list filter="[tag[Character]![$:/temp/pptg-taggroup]sort
[title]]" template="$:/core/ui/TagTemplate"
    selectedTiddler="$:/temp/selectedTiddler"
    unselectedText="<p>Select a topic in the table of contents. Click the 
arrow to expand a topic.</p>"
    missingText="<p>Missing tiddler.</p>"
template="CheckboxTemplate"
/>
        <$reveal type="nomatch" state="$:/state/SampleRevealMTSAll" text="
show">

<$button set="$:/state/SampleRevealMTSAll" setTo="show">Show tags for 
@@color:green;"New Character"@@</$button>
</$reveal>
<$reveal type="match" state="$:/state/SampleRevealMTSAll" text="show">

<$button set="$:/state/SampleRevealMTSAll" setTo="hide">Hide tags for 
@@color:red;"New Character"@@</$button>
&nbsp;&nbsp;&nbsp;<$list filter="[tag[New Character]![$:/temp/pptg-taggroup]
sort[title]]" template="$:/core/ui/TagTemplate"
    selectedTiddler="$:/temp/selectedTiddler"
    unselectedText="<p>Select a topic in the table of contents. Click the 
arrow to expand a topic.</p>"
    missingText="<p>Missing tiddler.</p>"
template="CheckboxTemplate"
/>
</$reveal>

</$reveal>


<br/>
<$edit-text tiddler=additionalCriteria tag=input size=20 /><p/>
<$vars additionalCriteria={{additionalCriteria}}>

<div style="background:white;"><br/>

<$set filter="[field:criteria[yes]addprefix<addPrefix>addsuffix<addSuffix>]" 
name=myfilter>

<$wikify text=<<myfilter>> name=myfilter2 type=text>

Choosed Tags: <$list filter="[field:criteria[yes]sort[title]]" storyview="
pop"><$set name="backgroundColor" value={{!!color}}><span 
style=<<tag-pill-styles>> class="tc-tag-label">
<$view field="title" format="text" />
<$button message="tm-remove-tag" param={{!!title}} class="tc-btn-invisible 
tc-remove-tag-button">&times;</$button></span>
</$set>
</$list>
 <div style="display:inline;"><<show-system>></div>


<$button>Open ''ALL found'' Tiddlers
<$list filter=<<finalFilter>>>
<$action-navigate $to=<<currentTiddler>> $scroll=no/>
</$list>
</$button>

<$count filter=<<finalFilter>> /> matching tiddler:

<$macrocall $name=list-links filter=<<finalFilter>> />

</$wikify>
</$set>
</$vars>


And the command in the Checkbox Template is:

<$checkbox field="criteria"  checked="yes" 
unchecked="no"/>{{!!title}}&nbsp;&nbsp;&nbsp;&nbsp;

Friendly asking- Surya

-- 
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/a91417cc-dffb-4c9e-bd37-d507e05eddf4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to