Thank you Eric

You are great - (with or without your proper headgear on
TiddlyTools ;-))

I have one minor issue with the endcount though..:

The table started with number 0 - so I changed this line:
for (var i=0; i<tids.length; i++)
into
for (var i=1; i<tids.length; i++)

Now the table starts with number 1 instead of zero...

How do I make the endcount take this into consideration (-1) ??

YS Måns Mårtensson


On Jun 1, 11:52 pm, Eric Shulman <[email protected]> wrote:
> > One thing I miss though - it's numbers for rows and
> > an endcount for the table...
> > What would the script look like with numbers for each
> > 'entry' and an endcount for the table??
>
> * add another column 'placeholder' to the table row format string:
>     var row='|%0|%1|%2|%3|';
>
> * add an appropriate heading for the new column:
>     out.push('| Number | Student | Synopsis | Description |h');
>
> * add the 'loop index' variable, i, to the *beginning*
>   of the array of values to be formatted:
>     out.push(row.format([i,el,sy,d]));
>
> * add another line of output following the table,
>   showing the number of tiddlers that were listed:
>     out.push('count='+tids.length);
>
> That should do it.
>
> 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