Deriving wiki structure from titles (long)

Thank you very much for your considered response. This is all great feedback.

That’s the main reason I’m asking the question about a more generic version. Are there other use-cases with similar title-derivable hierarchies? And if so, is there a not-too-complex set of tools we could write to treat these uniformly?

Also note, thiis is not a single macro, procedure, function, or template. This is a large collection of them working in tandem. If I do make this more generic, it would be more like an edition.

No, there is no thought of using spreadsheets for this. This is an attempt to replicate an existing collection of PDFs in a more useful format.

The original version was like that, and I am not at all committed to this change. I switched because there can logically only be a single such call per tiddler. It’s a marker for “Put my main content here, please,” for any tiddler that has children. As noted, I can’t just infer this, because there may well be some prefatory or following text that logically belongs with the children. So I have to be explicit about it. But as this describes the structure of the tiddler and not specifically the structure of the inclusion, it seemed to make more sense as tiddler metadata.

It also has one additional advantage: If necessary, I can now easily use that structure field to selectively apply templates to different styles of blocks.

For my use-case, it’s not just a matter of migrating. These documents cannot be casually changed. All but the most trivial changes are reviewed or suggested by the Board of Education’s lawyer. The school superintendent reviews them and submits them to the Board’s Policy Committee, who can accept, reject, or alter them. If that committee approves, they get brought before the whole Board for a first reading, and then at a subsequent meeting, they may be approved, rejected, or sent back for changes.

So the goal here is to update only the format of the documents. There should be no structural changes at all.

Absolutely. I will be looking at tools to make this easier. I would like to create a procedure that allows an insert, but with a warning like

Are you sure you want to insert a new section, E, here? That will involve moving the current E, F, and G to F, G, and H, as well as similar changes for any of their children. Proceed? (y/n)"

I am curious how you would use spreadsheets for this. I can’t think of a workflow where that would be easier than using the built-in TW tools… and I’m one who does a lot of bulk tiddler manipulation in Node.

I could. It would make all the code that’s generating the hierarchy from the titles still more complex. But it’s certainly doable.

However, I’ve long had a strong preference for simple and readable URLs.. I would much rather point people to https://crosseye.github.io/rham-policy/#Policy1410(C)(3) than to (the imaginary) https://crosseye.github.io/rham-policy/0.5.0/#Policy1410.C.3%20Refreshment%20restriction. Keeping simple URLs is definitely one of the goals of this project.

This was the main alternative I considered to the current approach. It would allow dragging and dropping titles/captions for rearrangement, which would be much easier than writing custom tools.

But it would make linkability much more difficult. And it would make it awfully easy to restructure these legal documents without the legal review process. The main reasons I chose for not going this route were to have reasonable permalinks and to retain the structure of the source documents.


Again, thank you for your response. You’ve given me lots to think about!