Okay, Thank you Morris,

I used your help and some digging to get this to work:

http://worldenglishbible.tiddlyspot.com/#%5B%5BFET%20for%20first%209%20verses%20of%20a%20particular%20book%5D%5D

(sorry - it takes a long time to load - its got the entire bible in
it)

code:
<<forEachTiddler
 where
 'tiddler.tags.contains("book") && tiddler.title.contains("Matthew")'
sortBy '(tiddler.title)'
 ascending
write
 '"<<tiddler "+"[["+tiddler.title+"##1:1"+"]]"+"\>\>\n"+"<<tiddler
"+"[["+tiddler.title+"##1:2"+"]]"+"\>\>\n"+"<<tiddler
"+"[["+tiddler.title+"##1:3"+"]]"+"\>\>\n"+"<<tiddler
"+"[["+tiddler.title+"##1:4"+"]]"+"\>\>\n"+"<<tiddler
"+"[["+tiddler.title+"##1:5"+"]]"+"\>\>\n"+"<<tiddler
"+"[["+tiddler.title+"##1:6"+"]]"+"\>\>\n"+"<<tiddler
"+"[["+tiddler.title+"##1:7"+"]]"+"\>\>\n"+"<<tiddler
"+"[["+tiddler.title+"##1:8"+"]]"+"\>\>\n"+"<<tiddler
"+"[["+tiddler.title+"##1:9"+"]]"+"\>\>\n"'
>>

So I know how to //write// sections from a FET thingie, but I still
have a question:

Lets say I wanted to do a FET call (not sure of the proper
terminology) and get the same result, but not by listing out each
individual <<tiddler [[title##section]]>> like I've done there, but by
putting a single generic <<tiddler [[titleVariable##sectionVariable]]
>> in there and have the FET do a loop or index like thing that just
starts at a given section value and increases alphabetically (as all
my sections would increase numerically (yes I do realize, however that
I'll have to add a "0" at the first 9 verses of each book))

I've thought of trying to do this with placemarkers (or whatever
they're called: $1, $2 etc), but I'd like to have more than 9 at a
time, and besides, I still think it'd be easier to do it with
something like a "for/next loop"


Any suggestions?

Dave

On Feb 20, 10:43 pm, cedardoc <[email protected]> wrote:
> Thank you so much Morris for your time and attention.  I'll tinker
> with this over the weekend.
>
> Dave
>
> On Feb 20, 6:05 pm, Morris Gray <[email protected]> wrote:
>
>
>
> > This will get you everything in a section.
> > Obviously index < 10) ? won't work here because it applies to tiddlers
> > not tiddler##section contents.
> > -----------------------
> > <<forEachTiddler
> >  where
> >  'tiddler.tags.contains("links")'
> > sortBy '(tiddler.title)'
> >  ascending
> > write
> >  '"<<tiddler "+tiddler.title+"##Links1"+"\>\>\n"'
>
> > -----------------------
>
> > Morris Grayhttp://twhelp.tiddlyspot.com
> > A TiddlyWiki help file for beginners
>
> > On Feb 21, 9:35 am, cedardoc <[email protected]> wrote:
>
> > > I'm struggling to get this to work...
> > > Here's my FET I derived from yours
>
> > > <<forEachTiddler
> > >       where 'tiddler.title.contains("BookOne")'
> > >       write
> > >       store.getTiddlerSection(tiddler.title, "1:1")
> > >  >>
> > > Where "1:1" is the first section in BookOne
>
> > > I get an error:
> > > <<forEachTiddler ...>>: Extra parameter behind 'write': 1:1 )
>
> > > Is it right to use the term "getTiddlerSection", and why is the
> > > section name a problem?
>
> > > And do I even need to use
> > > "     where 'tiddler.title.contains("BookOne")'" when I could later
> > > just use
> > > "      store.getTiddlerSection("BookOne", "1:1")" (seeing as all the
> > > info is coming from a single tiddler)?
>
> > > Also I'm assuming I'll have to replace "1:1" with some kind of
> > > variable and a loop??
> > > Sorry I don't really understand "store.get"-type lingo...
>
> > > Thanks for the help,
> > > Dave
>
> > > ps, I'll look at that link...thanks
>
> > > On Feb 20, 2:06 pm, Morris Gray <[email protected]> wrote:
>
> > > > While these are about slices they may still help you.
>
> > > > Here ia an improved slices plugin.
>
> > > >http://remotely-helpful.com/TiddlyWiki/ImprovedSlicesPlugin.html
>
> > > > Morris
>
> > > > On Feb 21, 6:23 am, Dave Parker <[email protected]> wrote:
>
> > > > > I've looked at all the examples in Udos ForEachTiddler plugin and
> > > > > can't find reference to writing out sections
>
> > > > > Could anyone get me started in writing something that would list a set
> > > > > of, say 10 sections of a single tiddler (its one big tiddler with
> > > > > hundreds of sections) starting at section 42?
>
> > > > > e.g.
>
> > > > > <<forEachTiddler
> > > > >     where
> > > > >         'tiddler.title = ("Book Three")'
> > > > >         sectionNumber = 42
> > > > >     write
> > > > >         '(index < 10) ? "*  "+tiddler.section" " : ""'
>
> > > > > the above obviously doesn't work, but you get the drift...
>
> > > > > Thanks,
> > > > > Dave Parker- Hide quoted text -
>
> > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
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