Hello all, I discovered TW a couple of weeks ago, and I was blown away by 
the great possibilities of this tool ! I am currently writting a set of 
customization for my TW, partly to have a better suited tool, partly just 
because programming is fun ! 

One of the things I want to do is to have a template rendered after each 
tiddlers body, with backlinks and links to related tiddlers. The related 
links are stored in a field (« relatif »). I wanted to reuse the 
core/ui/EditorTool/link-dropdown code to be able to select a new relation, 
then add a link to it in my field.

Well, my code works fine, *except for tiddlers where the title is a single 
word*.... Only that word is added to the field, without the [[]]. I just 
don’t understand, I spent more than a day on that and start becomming crazy 
!! Any help would be greatly appreciated !

This bit adds the brackets :
\define myLink() [[$(lien)$]]

This bit adds the link to the field :
\define add-link-actions()
<$vars lien={{$(linkTiddler)$}} >
<$action-listops $field="relatif" $subfilter=<<myLink>> />
</$vars>

Full code attached !

Thank you !

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/9daa7b5c-4c9c-42b2-a005-9f475ca6b7c2%40googlegroups.com.

Attachment: BBT_fonction_ajouterRelation.tid
Description: Binary data

Reply via email to