Hi TW-Imiller

Thanks for showing your solutions and doing a nice write up, it will
go into my tw-notes!
It's nice to have alternatives..

Cheers Måns Mårtensson

On 25 Feb., 18:26, TW-lmiller <[email protected]> wrote:
> Thanks again for the help.
>
> Closing the thread for future searches: by futzing around with the code I
> have both plugins displaying exactly what I want (for now).
>
> Here's what I wound up with as tiddly markup.
>
> ! Project tiddlers content
> tagged as project
> inside tiddler, 2 lines:
> summary: project summary
> next: next step in project
>
> !Inline Javascript Plugin Tiddler:
> !! Desired output
> |!tag|!slice|!nxt|
> |Project 1 title|Project 1 summary|Project 1 next step|
> |Project 2 title|Project 2 summary|Project 2 next step|
> |Project Dashboard|c
>
> !! Script result
> <script>
>    var out='';
>    var fmt='|[[%0]]|%1|%2|\n';
>    var tag='project';
>    var slice='summary';
>    var nxt = 'next';
>    var
> tids=store.sortTiddlers(store.getTaggedTiddlers(tag),'modified').reverse();
>    out+= "|!" + tag + "|!" + slice + "|!" + nxt + "|\n";
>    for (var i=0; i<tids.length; i++) {
>       var t=tids[i].title;
>       var s=store.getTiddlerSlice(t,slice);
>       var n=store.getTiddlerSlice(t,nxt);
>       out += fmt.format([t,s,n]);
>    }
>    out += "|Project Dashboard|c";
>    return out;
> </script>
>
> ! forEachTiddler - better than simple transclusion with <<tiddler>> because
> list is built automatically from tags
> !! Desired output
> Tiddler Name
> Tiddler Contents
>
> !! forEachTiddler-show project content
> <<forEachTiddler
>  where
>  'tiddler.tags.contains("project")'
>   sortBy
>  'tiddler.created'
>  descending
>  write
>  '"!\"\"\""+tiddler.title+"\"\"\"\n<<tiddler [["+tiddler.title+"]]$))\n"'
>
>
>
>
>
>
>
>

-- 
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