Extra caution is recommended when installing recently uploaded/updated scripts (read more)
Be sure you trust any scripts you install

Tiddly Links

Turn tiddly links into real links that can be bookmarked, opened in tabs, etc.






Sep 10, 2007
AviY User

This function is a great idea. However it has problems with titles which contain spaces. A small fix is suggested:

function createTiddlyLink(place,title,includeText,theClass,isStatic)
{
var text = includeText ? title : null;
var i = getTiddlyLinkInfo(title,theClass)
var btn;
if(isStatic)
btn = createExternalLink(place,"#" +'"'+title+'"');
else {
btn = createTiddlyButton(place,text,i.subTitle,onClickTiddlerLink,i.classes);
// modif SylvainAirCarnet
btn.setAttribute("href","#"+'"'+title+'"');
//
}
btn.setAttribute("refresh","link");
btn.setAttribute("tiddlyLink",title);
return(btn);
}


 
Jan 31, 2007
Sylvain Comte User

All TiddlyWikis owners should use this tiddler (create new tiddler, name it as you want and tag it with systemConfig)
--------------------------
//{{{
function createTiddlyLink(place,title,includeText,theClass,isStatic)
{
var text = includeText ? title : null;
var i = getTiddlyLinkInfo(title,theClass)
var btn;
if(isStatic)
btn = createExternalLink(place,"#" + title);
else {
btn = createTiddlyButton(place,text,i.subTitle,onClickTiddlerLink,i.classes);
// modif SylvainAirCarnet
btn.setAttribute("href","#"+title);
//
}
btn.setAttribute("refresh","link");
btn.setAttribute("tiddlyLink",title);
return(btn);
}
//}}}
-------------------

You could comment on this script if you were logged in.