Tiddly Links

By Lenny Domnitser Last update Apr 17, 2006 — Installed 586 times.

Archived Comments (locked)

in
Subscribe to Archived Comments 3 posts, 3 voices



Jesse Andrews Admin

The following is an archive of comments made before threaded discussions was implemented (November 16th, 2008)

 
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);
}


 
Sylvain Comte Scriptwright

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);
}
//}}}
-------------------

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel