Alternate titles for tiddlers

177 views
Skip to first unread message

Bob Jansen

unread,
Oct 9, 2020, 7:46:59 AM10/9/20
to TiddlyWiki
Is it possible to have a tilddler with a title, say TK15, but on display to display a more meaningful title?

My TW has tiddlers with such obscure titles as they represent an asset number but the actual asset, an artwork, may have a title of 

Blue Poles, oil on canvas, 2000x1500cm, 1987

It would be better for my user to see the meaningful title but underneath to keep the asset number format for TW operations.

bobj

PMario

unread,
Oct 9, 2020, 11:06:55 AM10/9/20
to TiddlyWiki
Hi Bob,

You can use the caption field, which was intended to use "short titles" for the TOC. .. But in your case it could be used to show longer titles.

BUT in your case as the title may be something like: Blue Poles, oil on canvas, 2000x1500cm, 1987 ... I would suggest to use the subtitle field, which is _not_ part of the TW core. ... So you need to change the ViewTemplate/title a little bit.

See the attached file, that you can download and drag & drop import.

There is a new system tiddler named: $:/BJansen/ViewTemplate/subtitle  to make editing simple. It contains:

<h2 class="tc-title">
<$view field="title"/> -- <$view field="subtitle"/>
</h2>


Which shows the existing title field and the new subtitle field.

In $:/core/ui/ViewTemplate/title search for {{||$:/BJansen/ViewTemplate/subtitle}}  to see what has changed.

hope that helps
mario
CustomViewTemplate-BJansen.json

Jean-Pierre Rivière

unread,
Oct 9, 2020, 11:13:11 AM10/9/20
to TiddlyWiki
This looks like a new template, where you wouls modify the ViewTemplate for the title field. We can read in the doc:

The best example of templating is the main story river in TiddlyWiki. Each tiddler in the story river is rendered through a ViewTemplate that specifies how each field is to be rendered.

But then you're on your own. I have a similar need, where I'd like to build the display title with a number of separate fields. Like, my tiddler title is "1.2.3" but I'd like to display "test 1.2.3" (which is a very simple case, but the mechanism involved would be the same). I have alos cases where I'd like to NOT display any title: this is when the tiddler "foo" is defining foo and I want its content to be
; foo
: bla bla bla
and not seeing "foo" displayed twice.

TW Tones

unread,
Oct 9, 2020, 6:06:59 PM10/9/20
to TiddlyWiki
Folks,

I thought I would chime in here and say the title is the unique key to a tiddler, so we must keep that true. However in lists of tiddlers we can present links that look like compound keys 
Blue Poles, oil on canvas, 2000x1500cm, 1987 (This is actually a row constructed from values found in various fields which have great value being independent)

Lists give you this flexibility. Depending on how you design your wiki this is often sufficient. Construct a tiddler that presents the data within you wiki however you want.

I don't see why we could not have a way to hide the title title with css and display this constructed one in the view template.

But we should always keep tiddler titles simple and have a method by which to make them unique, even if it were by naming them by a unique serial number.

Also Mario's subtitle field suggestion also the masks the possibility of using his alias plugin as well. In that case there are almost two (or more) titles for the same tiddler.

Regards
Tones

Bob Jansen

unread,
Oct 9, 2020, 6:59:10 PM10/9/20
to tiddl...@googlegroups.com
Tones

Maybe we need to learn a lesson from databases, have every tiddler with a unique key generated by the system and use the title as a user field.

Bobj

Dr. Bob Jansen
122 Cameron St, Rockdale NSW 2216, Australia
Skype: bobjtls

--
You received this message because you are subscribed to a topic in the Google Groups "TiddlyWiki" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tiddlywiki/vhONBFUgmp4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tiddlywiki+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/bea1e385-e03d-44e1-a1b0-5c0967f54d99o%40googlegroups.com.

TW Tones

unread,
Oct 9, 2020, 7:53:35 PM10/9/20
to TiddlyWiki
Bob,

We can already, we just keep title and have another user field for the "headline title". Maintaining the freeform titling is important.

As per this thread we can make the "headline title" display at the top.

I have a nice tiddler serial number generator I am working on, but it takes time due to the number of rabbit holes I have found.

My current thinking includes
  • Create new tiddlers with a unique serial number (TSN field)
  • Allow one tiddler to create child tiddlers that gain the parent tiddlers Serial number in a parent field. parent-tsn field
  • Provide a suit of automagical tiddler naming options 
    • Standard new tiddler tittle, 
    • One being to tag the child with the current tiddler like the current New Here
    • currentTiddler/serialnamber
    • currentTiddler - N (like current behaviour
    • $:/namespace/currentTiddler-childtsn
Similarly being able for a child to nominate a parent, and a parent to have its own serial number for all it's children a ctsn child-tiddlerSerialNumber

I believe this will be very powerful, 
  • Because we need NOT invent a tiddler title every time we create a tiddler
  • However we title or retitle a tiddler we can access it by the TSN
  • One tiddler can have many children, which can be divided by either the title naming standard or other values like tags.
  • Easy to create "uniquely" titled and numbered tiddlers as "database" records.
  • The ability to automatically generate new tiddler titles using contextual information (including database record standards)
  • The ability to share tiddler naming algorithms to meet various needs.
Regards
Tones

On Saturday, 10 October 2020 09:59:10 UTC+11, Bob Jansen wrote:
Tones

Maybe we need to learn a lesson from databases, have every tiddler with a unique key generated by the system and use the title as a user field.

Bobj

Dr. Bob Jansen
122 Cameron St, Rockdale NSW 2216, Australia
Skype: bobjtls


On 10 Oct 2020, at 09:06, TW Tones <anthon...@gmail.com> wrote:

Folks,

I thought I would chime in here and say the title is the unique key to a tiddler, so we must keep that true. However in lists of tiddlers we can present links that look like compound keys 
Blue Poles, oil on canvas, 2000x1500cm, 1987 (This is actually a row constructed from values found in various fields which have great value being independent)

Lists give you this flexibility. Depending on how you design your wiki this is often sufficient. Construct a tiddler that presents the data within you wiki however you want.

I don't see why we could not have a way to hide the title title with css and display this constructed one in the view template.

But we should always keep tiddler titles simple and have a method by which to make them unique, even if it were by naming them by a unique serial number.

Also Mario's subtitle field suggestion also the masks the possibility of using his alias plugin as well. In that case there are almost two (or more) titles for the same tiddler.

Regards
Tones


On Friday, 9 October 2020 22:46:59 UTC+11, Bob Jansen wrote:
Is it possible to have a tilddler with a title, say TK15, but on display to display a more meaningful title?

My TW has tiddlers with such obscure titles as they represent an asset number but the actual asset, an artwork, may have a title of 

Blue Poles, oil on canvas, 2000x1500cm, 1987

It would be better for my user to see the meaningful title but underneath to keep the asset number format for TW operations.

bobj

--
You received this message because you are subscribed to a topic in the Google Groups "TiddlyWiki" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tiddlywiki/vhONBFUgmp4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tiddl...@googlegroups.com.

Bob Jansen

unread,
Oct 9, 2020, 11:54:06 PM10/9/20
to tiddl...@googlegroups.com
Tones

Sounds like you’re on the case already 

Bobj

Dr. Bob Jansen
122 Cameron St, Rockdale NSW 2216, Australia
Skype: bobjtls

To unsubscribe from this group and all its topics, send an email to tiddlywiki+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/3e219642-57c2-48cf-ac2c-e7cbc774c5e9o%40googlegroups.com.

PMario

unread,
Oct 10, 2020, 4:12:43 AM10/10/20
to TiddlyWiki
Hi,
I'm a bit confused. Did you see my post, that contains a solution in the attachment.
It's simple and allows you to build your title in any way you want.
?!-m

Bob Jansen

unread,
Oct 10, 2020, 5:31:45 AM10/10/20
to tiddl...@googlegroups.com
Mario

I did see your post and will investigate it for my problem. Tones’ info provides a general solution by having every tiddler having a system generated and unalterable unique id with the ‘title’ now being a user field. Also he is describing a pointer based ‘database’ along the lines that my TW is implementing. This I presume might be for a future TW version

Bobj

Dr. Bob Jansen
122 Cameron St, Rockdale NSW 2216, Australia
Skype: bobjtls

--
You received this message because you are subscribed to a topic in the Google Groups "TiddlyWiki" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tiddlywiki/vhONBFUgmp4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tiddlywiki+...@googlegroups.com.

TW Tones

unread,
Oct 10, 2020, 7:30:40 AM10/10/20
to TiddlyWiki
Bob,

Sorry, I digress, Go with Mario's solution. I am speculating and working on various projects all at once, its the way I like to work. Using the caption if it exists and title if not.

$:/core/ui/ViewTemplate/title


replace

<h2 class="tc-title">
<$view field="title"/>

</h2>

as follows
<h2 class="tc-title">
<$view field="caption">
   <$view field="title"/>
</$view>
</h2>

Alternatively I am working on a transclude that transcludes the current tiddlers alt-title field
This means that the alt-title field can contain {{!!caption}}  and so the same thing as above, or use triple curly braces to generate the title.

I will share back with something more solid.

The tiddly serial number idea allows unique tiddler titles you don't need to name, but I would be tempted to use the caption as well. My serial number idea is more to allow the tiddlers to have any name (that is unique and rename tolerant)

Regards
Tones




On Saturday, 10 October 2020 20:31:45 UTC+11, Bob Jansen wrote:
Mario

I did see your post and will investigate it for my problem. Tones’ info provides a general solution by having every tiddler having a system generated and unalterable unique id with the ‘title’ now being a user field. Also he is describing a pointer based ‘database’ along the lines that my TW is implementing. This I presume might be for a future TW version

Bobj

Dr. Bob Jansen
122 Cameron St, Rockdale NSW 2216, Australia
Skype: bobjtls


On 10 Oct 2020, at 19:12, PMario <pmar...@gmail.com> wrote:

Hi,
I'm a bit confused. Did you see my post, that contains a solution in the attachment.
It's simple and allows you to build your title in any way you want.
?!-m

--
You received this message because you are subscribed to a topic in the Google Groups "TiddlyWiki" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tiddlywiki/vhONBFUgmp4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tiddl...@googlegroups.com.

Bob Jansen

unread,
Oct 10, 2020, 8:57:10 AM10/10/20
to TiddlyWiki
Tones,

I realise that your discussion is work in progress and was not counting on it to solve my problem. I will investigate Mario's suggestion and if it meets my needs will implement that.

Bobj

Reply all
Reply to author
Forward
0 new messages