For examples, open the ForEachTiddlerPlugin on Abego site and then
click on ForEachTiddlerMacro tag. You'll get a drop down list of
examples. As for specific exampl, search for context.inTiddler, Also,
there is context.viewerTiddler option.
As for your use, the easiest would be to use Eric's
TaggedTemplateTweak:
In tiddler fETTemplate (or whatever you wanna call it) put your fET
with &1.
Then make a copy of your ViewTemplate and name it xxxViewTemplate,
where xxx is the tag of the tiddlers to which you want that template.
Also, replace the following line in the template:
<div class='viewer' macro='view text wikified'></div>
with:
<div class='viewer' macro='view text wikified'><span macro='tiddler
fETTemplate with:{{tiddler.title}}'></span></div>
That way, that template is applied to all tiddlers tagged xxx and uses
tiddler title as a parameter. So, the actual condition in fET would
actually be:
<<forEachTiddler where 'tiddler == "Your Tiddler" && ...' ...>>
(1) http://www.TiddlyTools.com/#TaggedTemplateTweak
w
On Apr 10, 11:26 pm, dave <[email protected]> wrote:
> context.inTiddler
>
> That worked perfectly. Can you direct me to documentation describing
> the context? I was looking at using the paramaterized tiddlers
> feature (create a tiddler containing only an FET macro where tiddler
> == $1, then display that FET macro by using <<tiddler foo with:
> context.inTiddler>>) and found that I can't really get the intiddler
> contexxt to work properly by referring to the calling tiddler as
> opposed to the tiddler being called.
>
> Also, I am glad to hear that FET has such support, I think I shall
> stick with it.
>
> On Apr 10, 4:50 pm, whatever <[email protected]> wrote:
>
> > You can use fET with the following condition:
>
> > <<forEachTiddler where 'tiddler == context.inTiddler && ...' ...>>
>
> > That way you only look in the tiddler containing the condition.
>
> > Although fET was last changed a while ago, it is still one of the most
> > powerful plugins around.
>
> > w
>
> > On Apr 10, 9:45 pm, Seba <[email protected]> wrote:
>
> > > Hi David,
>
> > > I find both above mentioned plugins very powerful. It depends of
> > > course what are your requirements. If you need an in-tiddler database
> > > you may want to have a look athttp://baggr.tiddlyspot.com/.
>
> > > regards,
> > > seba
>
> > > On 10 apr., 18:59, David Young <[email protected]> wrote:
>
> > > > So I'm using a tiddler for storing a light database, and I'm
> > > > interested in using the forEachTiddler and DataTiddler plugins
> > > > fromhttp://tiddlywiki.abego-software.de.
>
> > > > I would like to use the foreachtiddler macros for making summary list
> > > > tiddlers, and use datatiddler information in each individual tiddler.
> > > > The problem is, I would also like to display the data for each
> > > > individual tiddler within that tiddler.
>
> > > > The showData macro appears to only create a simple table layout, while
> > > > I would prefer to make a more customized format.
>
> > > > I see that I could do that using the much more powerful forEachTiddler
> > > > macro, but that would look like "foreachtiddler where title = 'the
> > > > title of this tiddler' write 'blahs blah blah'". It seems inefficient
> > > > to search the whole tiddler list with foreachtiddler when I only want
> > > > the local tiddler.
>
> > > > Any ideas on how to efficiently achieve this? Also, the
> > > > foreachtiddler and datatiddler plugins look a bit dated, are there
> > > > alternatives? I suppose I would want to know alternatives even if
> > > > these tiddlers weren't a couple years old.
>
> > > > --
> > > > David Young
--
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.