Foreachtiddler calls with includeplugin

4 views
Skip to first unread message

Ed

unread,
Aug 27, 2007, 1:57:02 PM8/27/07
to TiddlyWiki
I have a default tiddler that includes a foreachtiddler call.
Ordinarily (when the tiddlers it is trying to find are in the same
file), it will display the list. But if the tiddlers are in another
wiki and included via the foreachtiddler command, they aren't listed.
Am I doing something wrong or can this not be done?

Ed

Ken Girard

unread,
Aug 28, 2007, 7:14:38 PM8/28/07
to TiddlyWiki
The problem is that the forEach is firing off before the tiddler is
Included.
The same type of thing happens if you try to do a permalink on an
Included tiddler.

Ken Girard

Udo Borkowski

unread,
Sep 1, 2007, 7:53:33 AM9/1/07
to Tiddl...@googlegroups.com
The problem is that the forEach is firing off before the tiddler is
Included.

Ken is right, the forEachTiddler macro is executed before other TWs are included. The including runs "in the background", "in parallel" to the normal startup code).

However you can fix this issue by adding my "<<autoRefresh>>" macro to the default tiddler that contains the ForEachTiddler call. This way the default tiddler is always updated ( i.e. shows the complete list) when any other tiddler changes, e.g. when tiddlers are added through the "include" plugin.

You can get the AutoRefreshPlugin at


The plugin is documented at


Udo

----------
Udo Borkowski
http://www.abego-software.de
Reply all
Reply to author
Forward
0 new messages