I was hoping something like this might work
if (title == 'undefined'){
createTiddlyText(createTiddlyLink(sp,tag,false),tag);
} else {
createTiddlyText(createTiddlyLink(sp,tag||title,false),title)
}
Getting warmer?
createTiddlyText(createTiddlyLink(sp,tag||title,false),
if (title == 'undefined'){
createTiddlyText(createTiddlyLink(sp,tag,false),tag);
} else {
createTiddlyText(createTiddlyLink(sp,tag||title,false),title)
});
(Syntax error. . .)
Thoughts?
Mike
On Mar 18, 9:23 pm, Mike <[email protected]> wrote:
> This one seems close
> createTiddlyText(createTiddlyLink(sp,tag||title,false),title);
>
> but it results in "undefined" in a few places. . .
> do I need an if..else so that <<tag with no title / pretty reference
> falls back to the tag reference?
>
> Maybe I am over thinking this . . .
>
> Mike
>
> On Mar 18, 9:14 pm, Mike <[email protected]> wrote:
>
> > Finally ! FTP access :)
>
> > my test casehttp://www.strm.us/tw/examples_twgg/qotp_hack
>
> > Code referenced
> > abovehttp://www.strm.us/tw/examples_twgg/qotp_hack#[[createTagButton%20function%2003.13.10]]%20[[tag%20test]]
>
> > I did try
> > createTiddlyText(createTiddlyLink(sp,title||tag,false),title);
> > and
> > createTiddlyText(createTiddlyLink(sp,tag||title,false),tag);
> > and
> > createTiddlyText(createTiddlyLink(sp,tag||title,false),title);
> > and got some weird results (chainsaw experimentation)
>
> > Any thoughts?
>
> > Mike
>
> > On Mar 17, 7:09 am, Mike <[email protected]> wrote:
>
> > > Reference:http://groups.google.com/group/tiddlywiki/browse_thread/thread/de4784...
>
> > > 01: config.quickOpenTag = {
> > > 02: dropdownChar: (document.all ? "\u25bc" : "\u25be"), // the little
> > > one doesn't work in IE?
> > > 03: // experimental - this function is not working
> > > 04: createTagButton: function(place,tag,excludeTiddler,title,tooltip)
> > > {
> > > 05: var sp =
> > > createTiddlyElement(place,"span",null,"quickopentag"); //
> > > combined container
> > > 06:
> > > createTiddlyText(createTiddlyLink(sp,title||tag,false),tag); //
> > > create quick open link
> > > 07: var theTag =
> > > createTiddlyButton(sp,config.quickOpenTag.dropdownChar,
> > > 08:
> > > config.views.wikified.tag.tooltip.format([tag]),onClickTag);
> > > 09: theTag.setAttribute("tag",tag);
> > > 10: if (excludeTiddler)
> > > 11: theTag.setAttribute("tiddler",excludeTiddler);
> > > 12: },
> > > 13: init: function() {
> > > 14: // we fully replace these builtins. can't hijack them
> > > easily
> > > 15: window.createTagButton = this.createTagButton;
> > > 16: }
> > > 18: }
> > > 19: config.quickOpenTag.init();
>
> > > Line 4/6/7 trying to figure out why they are working against each
> > > other. . .
> > > line 6 has reverse tag/title placement of line 7 ?
>
> > > Probably a syntax problem or something simple -.-
>
> > > My Test tiddler looks like
> > > !!!tag macro
> > > {{{
> > > <<tag 'RealTag Name' 'PrettyTag Name'>>
> > > <<tag systemConfig ▼>>}}}
>
> > > <<tag 'RealTag Name' 'PrettyTag Name'>>
> > > <<tag systemConfig ▼>>
> > > !!!tags macro
> > > <<tags>>
>
> > > Goal:
> > > trying to use Core formatting on QuickOpenTagPlugin instead of mptw
> > > pretty tag so if plugin is disable / removed <<tag myTag>> & <<tag
> > > myTag prettyTag>> references still work. . . mptw version <<tag
> > > PrettyTagName|RealTagName>>
>
> > > I think I am close, but can't seem to get over the last hurdle.
>
> > > I appreciate your assistance,
>
> > > Mike
--
You received this message because you are subscribed to the Google Groups
"TiddlyWikiDev" 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/tiddlywikidev?hl=en.