Thank you Morris
It helped me to make one table that I otherwise would have to split
into 2 seperate tables.
I use it like this:
<<forEachTiddler where ' tiddler.tags.contains
(context.inTiddler.title)' write '(index < 200)? "|"+(index+1)+"|
[["+tiddler.title+"]]|[["+tiddler.data("House")+"]] | [["+tiddler.data
("Room") +"]] | <<toggleTag hereFortheWeekend [["+tiddler.title+"]]
nolabel \>\> | <<toggleTag SickLeave [["+tiddler.title+"]] nolabel \>
\> |\n" : ""'begin '"|sortable|k\n"
+"|>|>|>|>|>| Teachers name |h\n"
+"|!#|[img(25%,auto)[Teachers name|http:/xxxxx.jpg]]|House|Room|!
[[hereFortheWeekend]] <<tiddler hereFortheWeekendUpdate\>\>|!
[[SickLeave]] <<tiddler SickLeaveUpdate\>\>|h\n"'
end 'count+" Students\n"' none '"No students\n"'>>
YS Måns Mårtensson
On 26 Feb., 13:06, Morris Gray <[email protected]> wrote:
> On Feb 26, 11:10 am, Måns <[email protected]> wrote:
>
> > One thing that I cannot figure out is how to put in a row in the
> > sortable table, (which isn't sorted or counted) that holds this
> > information - and stays just beneath the titlerow:
> > Title row= |sortable|k\n|!#|Navn|Gang|Værelse|HU|Syg|h\n
> > Fixed row= |>|>|>|>|>| @@Remember to update!@@ |!<<tiddler
> > HereForTheWeekendUpdate>>|!<<tiddler SickLeave>>|
>
> I don't think you can have the fixed row beneath the sortable row. The
> below has been taken from a working example that has the fixed row
> 'above' the sortable row.
>
> begin '"|sortable|k\n"
> +"|>|>|>|>|>|!Heading|h\n"
> +"|!Script|!Size|!Modified|!Author|!Version|!Other|h\n"'
>
> Morris Grayhttp://twhelp.tiddlyspot.com
> A TiddlyWiki help file for beginners
>
> On Feb 26, 11:10 am, Måns <[email protected]> wrote:
>
> > One thing that I cannot figure out is how to put in a row in the
> > sortable table, (which isn't sorted or counted) that holds this
> > information - and stays just beneath the titlerow:
> > Title row= |sortable|k\n|!#|Navn|Gang|Værelse|HU|Syg|h\n
> > Fixed row= |>|>|>|>|>| @@Remember to update!@@ |!<<tiddler
> > HereForTheWeekendUpdate>>|!<<tiddler SickLeave>>|
>
> > My problem is that I fill the table with data via the forEachTiddler
> > macro - and the syntax is getting quite crowded - and I don't know how
> > to spell it correctly. Here's the context (Which works as it is!!)
>
> > <<forEachTiddler where ' tiddler.tags.contains
> > (context.inTiddler.title)' write '(index < 200)? "|"+(index+1)+"|
> > [["+tiddler.title+"]]|[["+tiddler.data("House")+"]] | [["+tiddler.data
> > ("Room") +"]] | <<toggleTag HereForTheWeekend [["+tiddler.title+"]]
> > nolabel \>\> | <<toggleTag SickLeave [["+tiddler.title+"]] nolabel \>
> > \> |\n" : ""'begin '"|sortable|k\n|!#|Name|House|Room|
> > HereForTheWeekend|SickLeave|h\n"'
> > end 'count+" students\n"' none '"No students for this teacher\n"'
>
> > I just need to integrate the "Fixed row" somewhere in the code.
>
> > YS Måns Mårtensson
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---