Hi All,

This is just a quick warning for all plugin authors.
It used to be quite common practice to use a displayed tiddler's ID
attr to get the title of the tiddler. Code like this was often used in
a macro handler function:
...
var tidEl = story.findContainingTiddler(place);
var title = tidEl.id.substr(7);
...

If you had a tiddler titled "A Tiddler Title" then the id would have
been "tiddlerA Tiddler Title", hence stripping the first 7 chars left
you with the title.

This is NO longer the case, meaning you should no longer use this
pattern. Plus plugins that use this pattern will no longer work in
more recent versions of TW.

ID attributes are now being marked up correctly so instead of it being
"tiddlerA Tiddler Title" it is "tiddlerA_Tiddler_Title".

However the displayed tiddler does have a tiddler attribute that
contains an unaltered tiddler title which you can use instead. For
example:
...
var tidEl = story.findContainingTiddler(place);
var title = jQuery(tidEl).attr('tiddler');
...

Hope that helps,

Colm

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" 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/tiddlywikidev?hl=en.

Reply via email to