Hi Jess, > I am already using the $:/temp/state-$id$ syntax from an id (the "rl1") > passed into the macro as a parameter. >
Ah, totally overlooked that — neat trick! Adopted without much second thought and updated: http://tb5.tiddlyspot.com/#Toggle%20Contents I am glad to know there is a solution for preventing these sort of > state-tiddlers from being saved. > Agreed though, the fact that the creation of these makes the TW "dirty" is > a concern. > States under *$:/temp/* or *$:/state/* don't seem to do that. So there's no concern the way you / we prefix states now. > Is it possible to set a "cookie" from TW5 and use that to save state > instead, and therefore prevent the "dirty-ing" of TW? > Cookies don't provide the kind of persistence tiddlers do, so a decision was made against them. Which is ok, so long as there are ways of making things persist when we want them to or preventing them from doing so when we don't. Of course, if you prevented *$:/temp/* and *$:/state* from ever being persisted, then your macro will never allow for reopening that toggle state next time you open that tw5. Right now, that's fine with me... and the way to change that is to simply change that state handling in that macro, if anyone ever wants to. Best wishes, Tobias. -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/d/optout.

