Thanks for the response Tony,

I'd forgotten that the section links wasn't part of the core.  With my
TW, it's part of the CoreTweaks plugin (number 784).

I was the one who extended the RenameTagsPlugin to accomodate section
link changes!  So I guess it's my fault really!

The reason it doesn't work is that the CoreTweak can't be adding the
data to indicate a link has been made.  Sorry for sounding vauge but I
haven't fully worked out how the store.getReferringTiddlers 'knows'
which tiddlers link to a tiddler.

For example,

Currently if I have the following tiddlers:
 - 'test' - which contains headings !section1 and !section2
 - 'link1' - which just contains [[test]]
 - 'link2' - which just contains [[test##section1]]

All tiddlers link correctly.  But if I add the following to 'test':
<script>
    var text="";
    var refs = store.getReferringTiddlers(tiddler.title);
    for (var i=0;i<refs.length;i++) {
        text = refs[i].title + "\n";
    }
    return text;
</script>

then string generated is just "link1" - i.e. getReferringTiddlers does
not consider the [[test##section1]] in 'link2' as a link to 'test'.

I guess I need to do a bit more investigation, but I'm assuming it's
to do with the implementation of the sectionlinks CoreTweak.

Cheers,
James

-- 
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