It should work if you use tiddler.title, for example:
(store.filterTiddlers("[tag[("+tiddler.title+" AND NOT Reference)]]"),

cmari

On Mar 31, 3:13 am, Måns <[email protected]> wrote:
> I tried to use context.viewerTiddler.title and {{tiddler.title}} as
> tagdefinitions - but none of them worked.
> Any clue??
> (store.filterTiddlers("[tag[(context.viewerTiddler.title)]]"),
> "modified"); - Doesn't work..
>
> YS Måns Mårtensson
>
> On 31 Mar., 09:56, Måns <[email protected]> wrote:
>
> > Hi cmari
>
> > I was just looking for a table like that - Thanks a lot for sharing!!
>
> > I wonder if one could use {{tiddler.title}} as one of the tags?- I
> > will test it...
> > - and maybe even a popup (only when opening the tiddler holding the
> > script) for choosing tags -
> > as Eric did in this script *ShowTabsForTags*:
> > /%
> > |Name|ShowTabsForTags|
> > |Source|http://www.TiddlyTools.com/#ShowTabsForTags|
> > |Version|1.0.1|
> > |Author|Eric Shulman - ELS Design Studios|
> > |License|http://www.TiddlyTools.com/#LegalStatements<br>and
> > [[Creative Commons Attribution-ShareAlike 2.5 License|http://
> > creativecommons.org/licenses/by-sa/2.5/]]|
> > |~CoreVersion|2.1|
> > |Type|script|
> > |Requires||
> > |Overrides||
> > |Description|automatically generate a tabbed display for tiddlers with
> > a specified set of tags|
>
> > Usage:
> >         <<tiddler ShowTabsForTags with: "tag tag ...">>
> > where:
> >         "tag tag ..." is a space-separated list of tag values, ALL of which
> >         must be present on the tiddlers that are to be displayed.
>
> > %/{{left wrap{<script>
> >         var tags="$1".readBracketedList(); // get tags list from param
> >         if ("$1"=="$"+"1") { // if no tags were specified, then ASK for
> > tags...
> >                 var response=prompt("enter tag(s) to match:","faq");
> >                 if (!response) return "no tags specified"; // cancelled by 
> > user
> >                 var tags=response.readBracketedList();
> >         }
> >         // get tiddlers with a least one matching tag, in date order (newest
> > first)
> >         // and, for each tiddler that matches ALL tags, add macro params to
> > output...
> >         var out="";
> >         var tids=store.getTaggedTiddlers(tags[0],'modified').reverse();
> >         for (var t=0; t<tids.length; t++)
> >                 if (tids[t].tags.containsAll(tags)) out+='[[%0 ]] "view
> > %0" [[%0]]'.format([tids[t].title]);
> >         // if any tiddlers matched, output the <<tabs>> macro...
> >         if (out.length) return "<<tabs tabTabsForTags "+out+">>";
> >         // otherwise, output a message with popups for each specified tag...
> >         return "There are no tiddlers tagged with <<tag "+tags.join(">> and
> > <<tag ")+">>";
> > </script>}}}
>
> > YS Måns Mårtensson
>
> > On 30 Mar., 23:37, cmari <[email protected]> wrote:
>
> > > Thanks to both of you!  I had already looked at the
> > > FieldsEditorPlugin, but I'm not clever enough to figure out how to
> > > make it work for an entire list of tiddlers.  Eric's script gave me a
> > > fishing pole along with the fish itself (thanks!) and I have also now
> > > learned a bit more about formatting the results of a script. In case
> > > it's useful to anyone else, here's a version that condenses everything
> > > in a table, turns tiddler titles and fieldnames into links, and uses
> > > matchTagsPlugin to be a bit more specific about selecting tiddlers :
> > > <script>
> > >         var out=[]; var fmt='[[%0]]: %1|'; var fmt2='\n|[[%0]]|';
> > >         var tids=store.sortTiddlers(store.filterTiddlers("[tag[(alpha
> > > AND NOT some tag with spaces)]]"), "modified");
> > >         for (var i=0; i<tids.length; i++) {
> > >                                 out.push(fmt2.format([tids[i].title]));
> > >                                         for (var f in tids[i].fields) 
> > > out.push(fmt.format
> > > ([f,tids[i].fields [f]]));
> > >         }
> > >         return out.join('|');
> > > </script>
>
> > > cmari
>
> > > On Mar 30, 10:22 am, Eric Shulman <[email protected]> wrote:
>
> > > > > Is there a generic way to "show all the custom fields that I've added,
> > > > > even if I forgot what I called them" for a list of tiddlers (e.g.,
> > > > > tiddlers tagged with "myTag")?
>
> > > > Try this inline script (requires TiddlyTools' InlineJavascriptPlugin):
>
> > > > <script>
> > > >         var out=[]; var fmt='| %0|%1|';
> > > >         var tids=store.getTaggedTiddlers('alpha');
> > > >         for (var i=0; i<tids.length; i++) {
> > > >                 out.push(tids[i].title);
> > > >                 for (var f in tids[i].fields) 
> > > > out.push(fmt.format([f,tids[i].fields
> > > > [f]]));
> > > >         }
> > > >         return out.join('\n');
> > > > </script>
>
> > > > enjoy,
> > > > -e
> > > > Eric Shulman
> > > > TiddlyTools / ELS Design Studios
--~--~---------~--~----~------------~-------~--~----~
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