Toggletags breaks forEachTiddler macro??

7 views
Skip to first unread message

Måns

unread,
Feb 26, 2009, 4:51:34 AM2/26/09
to TiddlyWiki
I had a very "brutal" experience last night.
Ken G and cmari - helped me to compose the code needed to make a
sortable table which fetches information/data from tiddlers tagged
with the title of the Tiddler containing the code.
It worked like a charm!! - And I replaced all tables in question with
this new table.

After reloading it - all backslashes(\) had been erased and none of it
worked (of course).
It worked very well before - and I'm very unhappy that this happens as
it's the first REAL "time-saver" code I've accomplished to costumize
for my TW.

Here's the code (which works fine - untill I reload the document!!):

<<forEachTiddler
where
'tiddler.tags.contains (context.inTiddler.title)'
write
'(index < 200)? "|"+(index+1)+"|[["+tiddler.title+"]]|[["+tiddler.data
("Gang")+"]]|[["+tiddler.data("Værelse") +"]]|<<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\n"'
>>

After I reload - I get this:

<<forEachTiddler
where
'tiddler.tags.contains (context.inTiddler.title)'
write
'(index < 200)? "|"+(index+1)+"|[["+tiddler.title+"]]|[["+tiddler.data
("Gang")+"]]|[["+tiddler.data("Værelse") +"]]|<<toggleTag
hereFortheWeekend [["+tiddler.title+"]] nolabel >>|<<toggleTag
SickLeave [["+tiddler.title+"]] nolabel >>|n" : ""'
begin '"|sortable|kn|!#|Name|House|Room|[[hereFortheWeekend]]|
[[SickLeave]]|hn"'
end 'count+" Studentsn"'
none '"No studentsn"'
>>

Every single backslash has been removed!!
Can anyone tell me what to do about it??
I think there must be a workaround - because the code works very well
- untill it has been reloaded...

YS Måns Mårtensson

Morris Gray

unread,
Feb 26, 2009, 6:09:31 AM2/26/09
to TiddlyWiki
Is this all happening on your local disk, and you are not going
through a firewall or a proxy for any part of it?

Morris

Måns

unread,
Feb 26, 2009, 2:55:47 PM2/26/09
to TiddlyWiki
Thank you Morris for pointing out that it could relate to something
else than macros...
I didn't consider it for one moment....

I use BidiX's iTW, which uploads single tiddlers - and I've been
writing all my changes online.
Because you pointed in this direction I downloaded my TW and saved my
changes locally.
I've put it back online -
AND IT WORKS!! :-)

As long as I don't revise the code in these tiddlers online -
everything ought to work - and everything use them for is to fetch
tiddlernames and data + toggling tags in these tiddlers - so it's
perfect!!!

Thanks again - It's many hours of work which I got back this
way... :-)

Måns Mårtensson
Reply all
Reply to author
Forward
0 new messages