Eric,

My Own fix;

<script>
 var tids=store.getTiddlers();
 var match='$1'.split(',');
 var exclude='$2'.split(',');
 for (var i=0; i<tids.length; i++)
   if (tids[i].tags.containsAll(match) && !tids[i].tags.containsAny(exclude)
*) {*
       store.setTiddlerTag(tids[i].title,true,'SelectTiddlertag') *}*;
</script>

Seems to work, It is a bit slow on my 1,000 of tiddlers but it does what I
need, thanks Very much.

TonyM

If you have not found an easy way to do it with TiddlyWiki, you have missed
something.
www.tiddlywiki.com



On Mon, Aug 17, 2009 at 15:52, Anthony Muscio <[email protected]>wrote:

> Eric,
>
> Unfortunatly there is a missing )
>
> Resulting in
> SyntaxError: missing ) after condition
>
> I have tried to Fix it but my Java Script is weak.
>
> TonyM
>
> If you have not found an easy way to do it with TiddlyWiki, you have missed
> something.
> www.tiddlywiki.com
>
>
>
> On Mon, Aug 17, 2009 at 14:43, Eric Shulman <[email protected]> wrote:
>
>>
>> > Is there a way to introduce $1 containing one or more tags to
>> > include/Exclude to such a script. Without knowing in advance how many
>> > additional tags need to be included/excluded ?
>>
>> in [[SelectTiddlers]], write:
>> <script>
>>  var tids=store.getTiddlers();
>>   var match='$1'.split(',');
>>  var exclude='$2'.split(',');
>>   for (var i=0; i<tids.length; i++)
>>    if (tids[i].tags.containsAll(match)
>>      && !tids[i].tags.containsAny(exclude)
>>        store.setTiddlerTag(tids[i].title,true,'selected');
>> </script>
>>
>> Then, in some other tiddler, you can invoke:
>>   <<tiddler SelectTiddlers with: "list,of,tags,to,include"
>> "list,of,tags,to,exclude">>
>>
>> enjoy,
>> -e
>>
>> >>
>>
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to