On Sunday, March 22, 2020 at 7:01:19 AM UTC-7, David wrote:
>
>
> I saw how you set "sections" up as a tiddler, containing the names of the 
> sections.  It would be great if there were a dynamic way to get a list of 
> the sections.  For my grocery list, they are all tagged with 
> "ShoppingItem".  Is there a way to create that list by searching all the 
> tiddlers tagged "ShoppingItem" and grab the different values in their 
> "section" field dynamically?
>
>
You could do this with a nested <$list> structure.

The reason, or one of the reasons, I didn't do it this way to avoid the 
problem that happens when you let people set up "sections" (or any data 
attribute) on the fly. You tend to end up with either too many "sections", 
or "sections" with different values (spellings, misspellings, plurals, 
etc.) but for the same thing. e.g.

Garden
Gardeen
Gardening
Gardens
gardens
OutdoorGarden
Yardwork

Having one central location for the sections helps you to think clearly 
about what values you want "sections" to contain. Then the drop-down list 
allows you to easily select and apply that section to new items. If you 
really want more sections then it's easy enough to add them to the driver 
tiddler. Believe me, if you've ever inherited a database where someone has 
freely entered anything they happened to be thinking of at 9am on a Monday 
morning, then you'll know what I'm talking about.





-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/fdc59e3a-cf24-42ff-afe4-38692e59b940%40googlegroups.com.

Reply via email to