Please realize I have no clue about Javascript nor programming, but I'm
hoping to trigger someone's "aha I know how to do that", ideally pointing to
a plugin people have forgotten about?
I found this in the "TiddlyWiki-specific utility functions". As far as I can
tell, it's testing 1. does the tiddler exist? if not then 2. is it a shadow
tiddler? and if not then *baddabing baddaboom *(big bold part below) it must
be a tag with no corresponding tiddler!
I don't know if this function is used for other things, I've only seen it
display - when hovering over untiddled tags - the tooltip message "The
tiddler 'XYZ' doesn't yet exist".
function getTiddlyLinkInfo(title,currClasses)
{
var classes = currClasses ? currClasses.split(" ") : [];
classes.pushUnique("tiddlyLink");
var tiddler = store.fetchTiddler(title);
var subTitle;
if(tiddler) {
subTitle = tiddler.getSubtitle();
classes.pushUnique("tiddlyLinkExisting");
classes.remove("tiddlyLinkNonExisting");
classes.remove("shadow");
} else {
classes.remove("tiddlyLinkExisting");
classes.pushUnique("tiddlyLinkNonExisting");
if(store.isShadowTiddler(title)) {
subTitle =
config.messages.shadowedTiddlerToolTip.format([title]);
classes.pushUnique("shadow");
* } else {
subTitle =
config.messages.undefinedTiddlerToolTip.format([title]);
classes.remove("shadow");
}*
}
if(typeof config.annotations[title]=="string")
subTitle = config.annotations[title];
return {classes: classes.join(" "),subTitle: subTitle};
}
Now I'm thinking, all I need is for something to return a global listing of
all tags, and then filter that list using something like this snippet. Am I
on the right track?
I haven't yet been able wrap my head around ForEach, since all the examples
I've come across so far involve JS coding rather than just plugging in bit
and pieces. Is that a possibility?
If this isn't easily doable (e.g. I'd have to start saving up some money to
pay someone to write a plugin) then just please let me know and I'll stop
annoying the list (with this topic anyway 8-).
And if you've read this far, thanks for your patience. . .
On Saturday, July 2, 2011 11:22:56 AM UTC+7, HansBKK wrote:
>
> On Saturday, July 2, 2011 5:41:18 AM UTC+7, PMario wrote:
> <snipped>
>
>> > 1. return a list of terms used as tags that don't yet have tiddlers?
>> If you have a look at the right sidebar "Tags" tab you can see them.
>> The ones with a tiddler are "bold" the others normal.
>>
>
> Sorry if I wasn't more clear, I'll give an example of my use case. Say I've
> got a couple of dozen TW files, each sharing a group of taggly tiddlers from
> a master file. The content editors have been busy tagging the different
> texts in these files (each containing at least a book's length of content,
> some are many hundreds of pages). They are using the "global tags" when
> appropriate, and creating new "local only" ones as needed.
>
> When I'm reviewing these returned files, I would like to get a *single
> summary list* of these tags - the one thing they all would have in common
> is that they *aren't tiddlers* - the global ones are tiddlers by
> definition, since that's how they got distributed into the "child" TWs.
> Opening each of the hundreds of content tiddlers in each of these dozens of
> TWs, looking for new tags manually is perhaps do-able, but I'm looking for
> something more like a report giving the list of "all tags that aren't
> tiddlers in a given file.
>
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/tiddlywiki/-/UPLwzRTiNmMJ.
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/tiddlywiki?hl=en.