Reference:
http://groups.google.com/group/tiddlywiki/browse_thread/thread/63880dbd295305d1
http://mptw.tiddlyspot.com/#QuickOpenTagPlugin
QuickOpenTagPlugin has a version of pretty links, and the core
currently has a version of pretty links - but they do not have the
same functionality.
I am wondering if Quick OpenTagPlugin could use the core pretty links?
Not sure how big of a code change that would be, or if it would even
be possible.
(I think it would break all legacy mptw pretty links, because the
format is different)
Thoughts,
Mike
createTagButton: function(place,tag,excludeTiddler) {
// little hack so we can do this: <<tag PrettyTagName|
RealTagName>>
var splitTag = tag.split("|");
var pretty = tag;
if (splitTag.length == 2) {
tag = splitTag[1];
pretty = splitTag[0];
}
var sp =
createTiddlyElement(place,"span",null,"quickopentag");
createTiddlyText(createTiddlyLink(sp,tag,false),pretty);
var theTag =
createTiddlyButton(sp,config.quickOpenTag.dropdownChar,
config.views.wikified.tag.tooltip.format([tag]),onClickTag);
theTag.setAttribute("tag",tag);
if (excludeTiddler)
theTag.setAttribute("tiddler",excludeTiddler);
return(theTag);
},
Working
core pretty links
allTags macro Replaced (Quick Open Link + Drop down)
tag macro Replaced (Quick Open Link + Drop down)
Not Working
tags macro -trying to remove custom pretty links from function- (Quick
Open Link + Drop down)
Just need to try and figure out what all is going on in the above
function so that I can remove the "custom pretty links" but retain
functionality. (Brain Surgery vs. Hacksaw)
Mike
On Mar 14, 4:55 pm, Mike <eris...@gmail.com> wrote:
> Mr. Baird or any other Javascript guru,
>
Referring to QOTP <<tag PrettyTagName|RealTagName>> vs CORE <<tag
'pretty link' 'real link'>>
Thank You,
Mike
Have a problem getting line 04 to work and inserting
config.quickOpenTag.dropdownChar on line 06
Thoughts?
Mike
createTiddlyText(createTiddlyLink(sp,title||tag,false),tag); //create
quick open link
title||tag seems to act in reverse in this line vs from the core code,
I am thinking it is a syntax problem. . .
Mike