Hi, am new to TiddlyWiki and a have to confess that the level of
JavaScript used far exceeds my modest experience, so please excuse my
ignorance, but I am having a few problems with some modifications I am
trying to get working.

First let me explain what I am trying to achieve.  We are trying to
produce some nice interactive Database Design documentation - each
Table has it's own Tiddler, each Constant type has it's own Tiddler.
By stripping a TiddlyWiki HTML file down to just the HTML, body and
store area tags we can generate a report from the database repository
that contains all of the necessary tiddlers, and this can then be
imported into the real documentation TiddlyWiki where TagTree Plugin
creates a nice menu for navigation.  The same is done with the
Constants definitions which with the help of Part Tiddler allows us to
add a Slider that opens up with the list of valid values within the
field descriptions.

To supplement this there is a set of manually maintained Tiddlers that
describe how data is loaded, how it is exported, specific design
concepts, etc.  These are maintained in separate TiddlyWiki's, as is a
Template Master which contains the Plugins, Stylesheet modifications
etc.

Now to my problem - we have a large number of projects, each of which
has its own fork on the database schema (therefore project specific
generated content), and each Project will have its own final
TiddlyWiki.  To generate these you start with copy of Empty.html,
import from our TemplateMaster, then make a few changes to loadSource
Tiddlers that define where the rest of the content has to come from,
and then run our "Load Content" process to include all of the
generated and the ready to publish manual content.

As this is primarily a read-only TiddlyWiki I have tried to create a
new Backstage entry by copying from the various existing Backstage
bits of code, and now have a List that appears showing all of the
loadSource Tiddlers including when they were last loaded and allows
the User to check the ones that he want to import then they hit the
"load content" button.

Pressing the button goes through the list of loadSources and then
based on the filter and tag content set in the loadSource tiddler runs
the LoadTiddlers config.macros.loadTiddlers.loadFile method to import
the tiddlers in.  Temporary import is used for the manually maintained
TiddlyWikis so that table content can be reference while developing
it, and when manually maintained content is ready to be published it
is tagged with "publish" (hence the filter requirement).  When
imported all tiddlers are tagged "imported" or "temporary" and the
"publish" tag removed.  TemporaryTiddlers plug in then stops the
temporary tiddlers being saved so the manual content tiddlywikis never
save the table content.

This all works very well, but I have problems with the last two step
of the process and need guidance:

1) I want to update the LastLoaded date (slice) against the loadSource
Tiddler, and I can do this, but the ListView in the Wizard doesn't
refresh when the tiddler content is updated, even when backstage is
closed and reopened.
How do I get the Wizard to reset without saving and reloading the
tiddlywiki?

2) The code to select all "imported" tagged tiddlers and remove the
"publish" tag works also work well, but has a timing issue.  The
LoadTiddlers loadfile method works asynchronously, so the tag
modification code runs before most of the tiddlers have been
imported.  How can I get it to run when the load process is completed?

So far I have avoided making any changes to any of the Core code, or
that of any of the Plugins that I have used, but my only solution to
2) would involve hacking the LoadTiddlers plugin.

Thanks in advance, and sorry for the size

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" 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/tiddlywikidev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to