Hello,

Thanks for the reply, a preliminary test works :)
I was hoping however to extract definitions only from tiddlers that 
contained one. At this point I have not tagged the tiddler with a 
'definition' tag. For example, I will have a tiddler called "bacteria" and 
it will contain a definition and another tiddler called "parasites" and it 
has no definition.

A common tag between the two tiddlers is something like 'research', but if 
I use this tag, then the current code will list the tiddler.title 
"parasites" and no definitions following it.

Is there a way to use only tiddlers for which the tiddler body text 
contains the sequence " <<part definition>> " as a filtering mechanism ?
Thanks a lot W for the code so far !

Amir

On Thursday, November 8, 2012 3:35:03 AM UTC-5, whatever wrote:
>
> Hi! 
> Yes, it's possible. 
> <<forEachTiddler where 'tiddler.tags.contains("Your Tag")' write 
> '"[["+tiddler.title+"]]: <<tiddler [["+tiddler.title+"/definition]]\>\> 
> \n"'>> 
>
> And if you want it to be a table: 
> <<forEachTiddler where 'tiddler.tags.contains("Your Tag")' write '"| 
> [["+tiddler.title+"]]|<<tiddler [["+tiddler.title+"/definition]]\>\>| 
> \n"' begin '"|Tiddler|Definition|h\n"'>> 
>
> w 
>
> On 7 nov., 23:46, amir <[email protected]> wrote: 
> > Hello all, 
> > 
> > I am trying to come up to a solution to the following problem: I have 
> > tiddlers in which I have taken notes on my readings, and I am using the 
> > "partTiddlerPlugin" to define sections inside those tiddler that hold a 
> > definition. For example, I have a tiddler called [[bacteria]] and inside 
> it 
> > I have a definition: 
> > 
> > <part definition> 
> > prokaryotic microorganism 
> > </part> 
> > 
> > I would like to define a tiddler called "definitions" in which all the 
> > tiddlers with a definition would appear in the following format: 
> > 
> > TiddlerName: definition 
> > 
> > It seems like a very repetitive task and although I have never used the 
> > "ForEachTiddler" pluggin, its name seems to be exactly what I need. I 
> would 
> > need it to do: "for each tiddler with a part containing a definition, 
> print 
> > the name of the tiddler, a colon, and the corresponding definition" 
> > 
> > Is that at all possible with the ForEachTiddler pluggin ? 
> > 
> > Thanks, 
> > 
> > Amir 
>

-- 
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/-/qDZYFOnsPTcJ.
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