Hi Eric,
I'm using your code but there is one thing that might be nice if it's
not too complicated...
It whould be good if you could get a list of tiddlers where tags start
with "ulcn" and then after that sort the list depending on the whole
tag.
So you would have tiddlers like:
title:server1
<content>
eth0
eth1
</content>
tags:ulcn-server

title:server2
<content>
eth0
eth1
</content>
tags:ulcn-server

title:sevice1
<content>
properties
</content>
tags:ulcn-sevice

and they whould get printed in the following way:
*ulcn-servers
**server1
**server2
*ulcn-service
**service1

Is this possible or is it really way to complicated to get it working?

Greetings,
Geert


On Apr 14, 4:37 pm, Eric Shulman <[email protected]> wrote:
> > my code is:
>
> > <<forEachTiddler where
> > 'tiddler.tags.startsWith("ulcn").length > 0'
> > script '
> >    Array.prototype.startsWith=function(txt) {
> >       var out=[];


> >       for (var i=0;i<tiddler.tags.length;i++)
> >          if (tiddler.tags[i].substr(0,txt.length)==txt)
> >             out.push(tiddler.tags[i]);
> >       return out;
> >    }
> > ' >>
>
> Try this:
> -----------------------
> <<forEachTiddler where
> 'tiddler.tags.startsWith("ulcn").length > 0'
> script '
>    Array.prototype.startsWith=function(txt) {
>       var out=[];
>       for (var i=0;i<this.length;i++)
>          if (this[i].substr(0,txt.length)==txt)
>             out.push(this[i]);
>       return out;
>    }
> ' >>
> -----------------------
>
> -e
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" 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/TiddlyWiki?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to