I’ve switched that back and forth. When I do that (usually on “caption”) it changes other things that I want to keep static. I want the main contents to be in the order presented (Overview, Examples, Orders [maybe], All Tables, and About). But this orders them by title/caption. The trouble is that I want different sorting for different sections. The main content is as above, Examples
I’m sorting by title, but displaying the caption; however maintaining the titles in the order I want to present them is a bit annoying. All Tables
I would like to keep in a static order: Customer, Supplier, Product, Order, OrderItem. Customers
, I’d like to sort by last name/first name, although by caption (first-last) would be acceptable. Suppliers
and Products
, I’d like to sort by name (duplicated in caption). Order
and OrderItem
, I’d like to sort numerically on id (equivalently, alphanumeric by caption.)
I’ve seen @pmario’s enhanced tabs, and I will probably look at incorporating them at some point. Other suggestions would be quite welcome. My hierarchy will be fixed and not dynamic, so I suppose I could do this manually without the tabs macros, but I would rather not.
Thank you for the suggestion!
Oops! I’ll make sure that’s fixed in the next release. Thank you!
While there were several other threads also involved, yours was the one that most directly motivated this idea. I’m afraid it was in the negative though, with the idea that what you are looking for goes against the Philosophy of Tiddlers. I wantd to present an example of how we might work if every tiddler contains “the smallest semantically meaningful units” and that we use built-in capabilities to explore the “rich modelling of relationships between them.”
In this example, on each Order
page, at the top is a link to the Customer
tiddler, and there are links to every Product
being ordered. Each Customer
page includes a list of Order
s. Each Product
page links to its Supplier
and all the Order
s including it. Each Supplier
has a list of Product
s. There is one missing connection – there should be a link from Order
to each OrderItem
. It will be easy to add, and I’ll do it in the next release.
These are the simplest, most obvious relations between tables, and the original idea was to show how to build more complex relations out of these… an idea which quickly morphed into a more generic, “How to mimic SQL in TW” one. But that original idea could be demonstrated with filters like this, to find the list of customers who’ve ordered Product/18 (Carnarvon Tigers (16 kg pkg.): $62.50):
[tag[OrderItem]product-id[18]get[order-id]addprefix[Order/]get[customer-id]addprefix[Customer/]unique[]get[caption]sort[]]
And of course we could extend that idea to find all the Customers whose orders included products from a given supplier. And so on.
The major point is that TiddlyWiki already gives you a great number of tools to work with structured data.
A real-world example of these ideas is in http://scott.sauyet.com/Tiddlywiki/Demo/ClubDemo/v4/, a somewhat-anonymized version of the wiki we use to manage our company’s Chess Club. If you look at the major data, Members
, Meetings
, and Puzzles
, you will see that most everything is derived from fields in tiddlers. Only a small part of the site is custom text.