different automatic tag when "create a new tiddler tagged with this one" -- or different displayed tiddler name

126 views
Skip to first unread message

Felix Bachofner

unread,
Oct 24, 2016, 7:20:02 PM10/24/16
to TiddlyWiki
Context:

I have a simple Notes and Projects/Tasks/ToDos system in a TiddlyWiki.

I would like parent-level tiddlers to be plural, but lower levels to be singular.

In other words:
Projects should be composed of individual tiddlers with the tag "project" (no "s")
Tasks should be composed of individual tiddlers with the tag "task" (again, no "s")
ToDos should be composed of individual tiddlers with the tag "ToDo" (again, no "s")

These "parent" tiddlers named Projects, Tasks, and ToDos "collect" the various tiddlers making up those categories (very much like a relational DB) and display the "related" children at the parent level using the TOC macro.

When I add a tiddler from the top level, it auto-tags with the tiddler name (as expected), but unfortunately this is the plural name which does not accurately express the lower level tiddler -- which represents a singularity.

Questions:

Is there a way to force the "child" tiddler to automatically take a different assigned tag?

Alternatively, can I name the upper level tiddler with the singular name but have it display with a plural "name"


Thanks in advance!

Mark S.

unread,
Oct 24, 2016, 9:19:34 PM10/24/16
to TiddlyWiki
One way might be to use the Caption field to hold the display title you want.

To do this, you modify the $:/core/ui/ViewTemplate/title shadow definition, and replace

<$view field="title"/>

with

<$view field="caption"><$view field="title"/></$view>

(instructions take from Eric Shulman's post: https://groups.google.com/d/msg/tiddlywiki/6yUkcDzp7ko/T7o7VNHMHwAJ)

Personally, I just live with the inconsistency, and tag individual items as plurals, under the theory that the tag is showing the group membership that the item belongs to (I am one of many tasks, therefore I am tagged "Tasks").

Good luck!
Mark

FBachofner

unread,
Oct 24, 2016, 10:57:23 PM10/24/16
to TiddlyWiki
Hi Mark:


Thanks for pointing me to Eric Shulman's post!

It works great so far and doesn't seem to have any adverse impacts.


Felix

Tobias Beer

unread,
Oct 25, 2016, 12:29:29 AM10/25/16
to TiddlyWiki
Hi Felix,

I am using this naming pattern deliberately, precisely not to achieve what you want.

In other words, it's a good thing, that all tiddlers tagged Journal are not listed under Journals.

Why?

Because that way I can have other tiddlers relate to the concept Journals via tagging without actual Journal entries ending up in the same list.

So, my summary for these two reads:

Journals - about daily journals and such

Journal - a list of [[journal entries|Journals]]

...whereas the tiddler Journal lists titles of all tiddlers tagged Journal but the Journals tiddler actually shows the 5 most recent ones, fully.

Creating a new tiddler and tag it Journal... not too hard of an exercise I find. Otherwise, I can always open the tiddler Journal and then use "new here" at that one if I'm being lazy. ;-)

Best wishes,

Tobias.

FBachofner

unread,
Oct 25, 2016, 1:45:35 AM10/25/16
to TiddlyWiki
Hallo Tobias:


I think I understand what you are trying to say, but I think you need a different example!

In English Journal is a "Sammelbegriff"  (based on your name and location I infer you are German) and thus necessarily implies a plurality/collection.  A proper taxonomy/naming scheme for a Journal entry would, in fact, be something like "journal entry" -- but that starts to get long and most would probably just tag it "journal" . . .


This whole singular vs. plural naming issue is a point of constant debate with DB "experts."  Over time we have vacillated between plural and singular for table names but have consistently chosen singular for field (i.e. column) names -- as each record should represent a single entity.

Thanks for your response.

Tobias Beer

unread,
Oct 25, 2016, 2:21:56 AM10/25/16
to tiddl...@googlegroups.com
Hi Felix,

Just wanted to highlight, that there's a benefit from not having the two mean the same. :-)

You can, of course, use the same method the other way around.

The key point being: one would serve for the concept and the other for the records. If you use plural or singular for one or the other is a matter of preference. I believe I started out the other way around but - in my case - I more often refer to concepts in my tiddlers, as I am documenting things. So in that regard, I want to be writing something like, "Daily notes on what's happened can be found in [[Journals]]." rather than "Daily notes on what's happened can be found in a [[Journal]]." To me, the former sounded more natural a wording overall. If I specifically want to link records, I sometimes even do, "See list of [[Journal]]s." Of course my notes are about a host of other things, not actually "Journals". ;-)

Best wishes,

Tobias.
Reply all
Reply to author
Forward
0 new messages