Hi whatever Sorry for long silence ...
I slightly modified your script to match my taxonomy <script> var skills = store.getTaggedTiddlers("*Skills*"); //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> It works fine if I past it into [Paul]. Thank an lot. Now I am trying to save it into [PeopleSkillsScript] Therefor I am trying to replace tiddler's title with $1 variable. <script> var skills = store.getTaggedTiddlers("Skills"); //Get skill tiddlers var here = story.findContainingTiddler(place); //Determine place var title = $1; //Calling 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> And to call it from [Paul] with <<tiddler PeopleSkillsScript with: {{tiddler.title}}>> But I get : ReferenceError: Paul is not defined Can you please help me further ? Regards Julien On Friday, September 12, 2014 5:29:32 PM UTC+2, whatever wrote: > > 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 tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/d/optout.