Hey!

Try the following:

<script>
var skills = store.getTaggedTiddlers("skill"); //Get skill tiddlers
var here = story.findContainingTiddler(place); //Determine place
if (here) {
var tid = store.getTiddler(here.getAttribute("tiddler")); //Get this tiddler
}
var title = tid.title; //This tiddler's title
var i, skill;
var out = []; //Output for skills
for (i = 0; i < skills.length; i++) {
skill = skills[i].title; //A skill is skill tiddler's title
if (tid.isTagged(skill)) { //If this tiddler is tagged with a skill
out.push(skill); //Add the skill to the output
}
}
wikify(title+" has the following skills: "+out.toString().replace(/,/g, ", 
")+".",place); //Final output
</script>

Note that you need InlineJavascriptPlugin (1) for this to work.

(1) http://www.TiddlyTools.com/#InlineJavascriptPlugin

w

On Friday, September 12, 2014 4:45:51 PM UTC+2, julien23 wrote:
>
> Hi All
>
> I use TW for contact management
>
> [Paul] may be tagged SportScience , SystemControl or Coding
> but he is also tagged with People, silverDim13, Journal20140912 ...
>
> [SportScience] , [SystemControl] and [Coding] are skills, they are tagged 
> with "Skills"
>
> How can I get a list of Paul's skills ?
>
> Looking forward to read from you
>
> Julien
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.

Reply via email to