On Jun 1, 10:57 pm, Måns <[email protected]> wrote:
> Thank you Eric -
Yes, I always learn something from following Eric's code!
> However the numbering and endcount don't get affected by the exclusion
> - so I'll stick to a unique Tag this time - unless ofcourse, there is
> a way to make the numbering work as well.
Try this (Note: untested; also term 'i alt' should probably be
something else now ... but I don't read Danish ;-) ) However, if
you're expecting that the same tiddler will always have the same
number ... it probably won't, depending on other tiddlers you add/
delete. :
<script>
var out=[];
var row='|%0|%1|%2|%3|';
var spin = 0 ;
out.push('| # | Elev | Synopse | Beskrivelse |h'); // headings
var tids=store.getTaggedTiddlers('NoteArkiv');
for (var i=0; i<tids.length; i++){
if (!store.getTiddlerText(tids[i].title+'##Beskrivelse'))
continue;
spin++ ;
var el=store.getTiddlerSlice(tids[i].title,'Elev');
var sy=store.getTiddlerSlice(tids[i].title,'Synopse');
var b='<<tiddler [['+tids[i].title+'##Beskrivelse]]>>';
out.push(row.format([spin,el,sy,b]));
}
out.push('|sortable|k');out.push('i alt ='+ spin ); // table
class
return out.join('\n');
</script>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---