Hi again -
I've found out how to make the tiddlers show as wikilinks (var fmt='|
[[%0]]|';)

I would also like to expand the table with numbers and a counter with
sum...
How do i accomplish that??
something like I would do it in a fET: ...write
 '(index < 28)? "|"+(index+1)+"|[["+tiddler.title+"]] |

Where would I put it??
<script>
        var out=[];
        var exclude=['tag1','tag2','tag3'];
        var fmt='|%0|';
        var here=story.findContainingTiddler(place); if (!here)
return;
        var tid=store.getTiddler(here.getAttribute('tiddler'));
        if (tid.tags.length) out.push('|tags|h\n|sortable|k');
        for (var t=0; t<tid.tags.length; t++)
                if (!exclude.contains(tid.tags[t]))
                        out.push(fmt.format([tid.tags[t]]));
        return out.join('\n');
</script>

YS Måns Mårtensson


On 9 Apr., 22:04, Måns <[email protected]> wrote:
> Thank you very much Eric
> That was exactly what I needed!!
>
> YS Måns  Mårtensson
>
> On 9 Apr., 15:28, Eric Shulman <[email protected]> wrote:
>
> > > What I need is a list of tiddlers (preferably in a sortable table),
> > > which this tiddler refers to via tags - Just a simple <<tags>> - but
> > > with the ability to exclude certain tags/tiddlers from the list...
>
> > Using InlineJavascriptPlugin (plus TableSortingPlugin), you can write:
>
> > <script>
> >         var out=[];
> >         var exclude=['tag1','tag2','tag3'];
> >         var fmt='|%0|';
> >         var here=story.findContainingTiddler(place); if (!here) return;
> >         var tid=store.getTiddler(here.getAttribute('tiddler'));
> >         if (tid.tags.length) out.push('|tags|h\n|sortable|k');
> >         for (var t=0; t<tid.tags.length; t++)
> >                 if (!exclude.contains(tid.tags[t]))
> >                         out.push(fmt.format([tid.tags[t]]));
> >         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