Book listing tiddler

219 views
Skip to first unread message

Peter Buyze

unread,
Apr 11, 2020, 11:06:55 AM4/11/20
to TiddlyWiki forum
I have a basic template with in the text area:

Author:
Source:
Remarks:

Above Author there is a horizontal line, above which I add info. Each time I want to create a new tiddler I clone this empty one.

When the info I add is from a book I add the tag book to the tiddler. I also have a tiddler called Book which lists all the tiddlers (their titles as clickable links) with the tag book.

What I would really like is a tiddler that lists the book title (currently put against Source:) and below each book title the tiddlers (as clickable links) related to it.

How can I achieve that?
--
Securely sent with Tutanota. Get your own encrypted, ad-free mailbox:

Mat

unread,
Apr 11, 2020, 11:44:38 AM4/11/20
to tiddl...@googlegroups.com
What I would really like is a tiddler that lists the book title (currently put against Source:) and below each book title the tiddlers (as clickable links) related to it.

What does "related to it" mean? I'll assume you mean any tiddler tagged with the title of that book:

<$list filter="[tag[book]]">
Source: <$view field=title/>
<br>
<$list filter="[tag
<currentTiddler>]">
<$link/>
<br>
</$list>
</$list>



If this is not what you want, maybe you could show the imagined output and use blue coloring for links.

<:-)

Peter Buyze

unread,
Apr 11, 2020, 12:23:08 PM4/11/20
to TiddlyWiki forum
Mat, this does not give me what I want. I am looking for a tiddler listing this:

Title 1
   Tiddler A
   Tiddler B
Title 2
   Tiddler C
Title 3
   Tiddler D

whereby Title 1, 2, 3 are book titles, Tiddler A, B, C, D are clickable tiddler titles, Tiddler A, B, C, D all have 1 tag in common: book.
Ideally the book titles are in alphabetical order, and the tiddler tiles below each book title too, and the book titles are collapsible.

BTW, I have modified the lay-out below the horizontal empty template tiddler as follows:

Author:
Source:
Book: The rising sun, p.23
Remarks:

"The rising sun, p.23" is an example.

--
Securely sent with Tutanota. Get your own encrypted, ad-free mailbox:


11 Apr 2020, 18:44 by matia...@gmail.com:
<:-)

On Saturday, April 11, 2020 at 5:06:55 PM UTC+2, Peter Buyze wrote:
I have a basic template with in the text area:

Author:
Source:
Remarks:

Above Author there is a horizontal line, above which I add info. Each time I want to create a new tiddler I clone this empty one.

When the info I add is from a book I add the tag book to the tiddler. I also have a tiddler called Book which lists all the tiddlers (their titles as clickable links) with the tag book.

What I would really like is a tiddler that lists the book title (currently put against Source:) and below each book title the tiddlers (as clickable links) related to it.

How can I achieve that?
--
Securely sent with Tutanota. Get your own encrypted, ad-free mailbox:


--
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 tiddlywiki+...@googlegroups.com.

Mat

unread,
Apr 11, 2020, 12:58:36 PM4/11/20
to TiddlyWiki
Peter Buyze wrote:
Title 1
   Tiddler A
   Tiddler B
Title 2
   Tiddler C
Title 3
   Tiddler D

whereby Title 1, 2, 3 are book titles, Tiddler A, B, C, D are clickable tiddler titles, Tiddler A, B, C, D all have 1 tag in common: book.
Ideally the book titles are in alphabetical order, and the tiddler tiles below each book title too, and the book titles are collapsible.

OK, so what is the commonality for 1, 2, 3? Do they share a common tag or how are they distinguishable?
And how can you tell that, say, TiddlerA belongs to Title1 and not to Title2? Does A perhaps have the tag Title1.

My spontaneous thought is that it should be 1,2,3 that are tagged "book" because they are books. And A-D should be tagged with the title of the book they belong to. BTW, it is not clear what "tiddler A" refers to in reality. It would be easier to understand if you exemplified your things with actual titles of books, authors etc.

BTW, I have modified the lay-out below the horizontal empty template tiddler as follows:

 Your tree model does not show how your "horizontal empty template" fits in.

<:-)

Peter Buyze

unread,
Apr 11, 2020, 1:07:55 PM4/11/20
to TiddlyWiki forum
Mat, see my comments in bold below.

--
Securely sent with Tutanota. Get your own encrypted, ad-free mailbox:


11 Apr 2020, 19:58 by matia...@gmail.com:
Peter Buyze wrote:
Title 1
   Tiddler A
   Tiddler B
Title 2
   Tiddler C
Title 3
   Tiddler D

whereby Title 1, 2, 3 are book titles, Tiddler A, B, C, D are clickable tiddler titles, Tiddler A, B, C, D all have 1 tag in common: book.
Ideally the book titles are in alphabetical order, and the tiddler tiles below each book title too, and the book titles are collapsible.

OK, so what is the commonality for 1, 2, 3? Do they share a common tag or how are they distinguishable? There is no commonality between them, they are just titles.
And how can you tell that, say, TiddlerA belongs to Title1 and not to Title2? Does A perhaps have the tag Title1. Tiddler A belongs to Title 1 because on Tiddler A, in the Book: field it shows Title 1. No, Tiddler A does NOT have tag Title 1.

My spontaneous thought is that it should be 1,2,3 that are tagged "book" because they are books. And A-D should be tagged with the title of the book they belong to. BTW, it is not clear what "tiddler A" refers to in reality. It would be easier to understand if you exemplified your things with actual titles of books, authors etc. Tiddlers A, B, etc. have 1 tag in common, and it is book.
Example:

in text area:
The mark of the immature man is that he wants to die nobly for a cause, while the mark of a mature man is that he wants to live humbly for one.

below the horizontal line:
Author: Wilhelm Stekel
Source:
Book: Catcher in the Rye, p.?
Remarks: Stekel is quoted

tags of this tiddler: book, life, maturity.
BTW, I have modified the lay-out below the horizontal empty template tiddler as follows:

 Your tree model does not show how your "horizontal empty template" fits in.

<:-)


--
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 tiddlywiki+...@googlegroups.com.

Mat

unread,
Apr 11, 2020, 2:00:35 PM4/11/20
to TiddlyWiki
Peter Buyze wrote:

OK, so what is the commonality for 1, 2, 3? Do they share a common tag or how are they distinguishable? There is no commonality between them, they are just titles.
Fair enough. Then you'll need to list them manually in the listwidget (doable, but...) since the system cannot know the difference between such a tiddler and any arbitrary tiddler. 

And how can you tell that, say, TiddlerA belongs to Title1 and not to Title2? Does A perhaps have the tag Title1. Tiddler A belongs to Title 1 because on Tiddler A, in the Book: field it shows Title 1. No, Tiddler A does NOT have tag Title 1.

Aha, fields with the titles. That's critical info.
 
My spontaneous thought is that it should be 1,2,3 that are tagged "book" because they are books. And A-D should be tagged with the title of the book they belong to. BTW, it is not clear what "tiddler A" refers to in reality. It would be easier to understand if you exemplified your things with actual titles of books, authors etc. Tiddlers A, B, etc. have 1 tag in common, and it is book.
OK, they also have the book field so that tag will not contribute anything further. Just sayin.

 
Example:

in text area:
The mark of the immature man is that he wants to die nobly for a cause, while the mark of a mature man is that he wants to live humbly for one.

below the horizontal line:
Author: Wilhelm Stekel
Source:
Book: Catcher in the Rye, p.?
Remarks: Stekel is quoted

tags of this tiddler: book, life, maturity.


OK, so since you say this is tagged "book", I take it this is one of "TiddlerA", "TiddlerB" etc.

However, it seems this doesn't really have much to do with the tree structure we're discussing, right? The tree structure is what should show up in the tiddler titled "Book" which doesn't show this "horizontal line section". If my interpretation is correct, then may I just suggest that "next time you ask" it's better to ask two separate questions/threads to not have the issues confuse one another :-)

OK, for the structure. See if this works:

<$list filter="[[Title 1]] [[Title 2]] [[Title 3]] ........">
<$list filter="[book<currentTiddler>]">
1:<$link to={{!!book}}></$link><br>
2:<$link/><br>
</$list>
</$list>

Had the titles all shared a common tag it would instead be filter="[tag[thetag]]" ... i.e much easier and if you do more lists etc then you can use this again ;-)

I made both 1: and 2: because I'm not sure if you wanted a link to the Title or to the book. I'm guessing the book, which is the 2:

OK, hope this is of some help.

<:-)

TonyM

unread,
Apr 11, 2020, 8:38:45 PM4/11/20
to TiddlyWiki
Peter

I support mats suggestions but I read that you are not using fields just text entry. Use tags or actual fields to organise your information and all tiddlywikis features become yours to use.

What you ask is possible as is almost anything, but unadvisable.

Once you move these to fields you can then create a tiddler as a view template that contains how to view such a tiddler. Wrap it in a conditional list to show only on books or using tags.

Fieldname: {{!!fieldname}}

We can give further guidance it you ask.

Regards
Tony

Peter Buyze

unread,
Apr 12, 2020, 1:36:14 AM4/12/20
to TiddlyWiki forum
Mat, we are talking cross-purposes, and the reason is that I have not made myself clear enough - my apologies for that.

So I have attached 4 screenshots of 4 tiddlers each:
2 tiddlers with a passage from the same book "Journal d'une femme en blanc"
1 tiddler with a passage from the book "Catcher in the rye"
1 tiddler with a passage from the book "Malcolcm X autobiography".

I want a hub-like tiddler (I'll call it Booklist to avoid misunderstanding) that shows:

Catcher in the rye
    Immature vs Mature man

Journal d'une femme en blanc
    Love and its context
    Religion (1) and bigotry

Malcolm X autobiography
    Maktub

The book titles are sorted alphabetically, as are the tiddler titles, and the book titles should be expandable. Clicking on e.g. Maktub should take me to that tiddler; the book titles are not clickable, of course.

I have more tiddlers than that, and the list is growing.


--
Securely sent with Tutanota. Get your own encrypted, ad-free mailbox:


11 Apr 2020, 21:00 by matia...@gmail.com:
--
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 tiddlywiki+...@googlegroups.com.
femme1.png
femme2.png
catch.png
mx.png

Peter Buyze

unread,
Apr 12, 2020, 1:46:52 AM4/12/20
to TiddlyWiki forum
Tony, I just sent a reply to Mat, not having seen your reply, so I apologise.

OK, I understand it is better to create a new field. So please tell me exactly how to do that.

At the bottom of a tiddler there is a box called "field name": if I click on that there is a drop-down list to choose from, you cannot add your own field name such as "Book".

Next to that there is a box ""field value".

How should I fill in these boxes?

Also, I assume that, for future use, it would also be useful to add field for "Author" and "Source".


12 Apr 2020, 03:38 by anthony...@gmail.com:
--
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 tiddlywiki+...@googlegroups.com.

TonyM

unread,
Apr 12, 2020, 2:33:55 AM4/12/20
to TiddlyWiki
Peter

Yes, you can type in a new fieldname and add it. Field names have naming rules but single or hyphenated words are fine.

Perhaps you can decide if a tiddler has the author field then its a book and leave the tags for your relationships.

I can share a bundle of example tiddlers if you want a quick answer but you will learn more on your own.

Regards
Tony

TonyM

unread,
Apr 12, 2020, 2:40:32 AM4/12/20
to TiddlyWiki
Why not a tiddler for each book and each author and tag books with authors. Or authors with books? No author field is required be cause the title is the author. Tag books with book and authors with author.

Personaly I use a field called object-type for my tiddlers and would give it a value of book or author rather than tags leaving them free for more ad hoc relationships.

Regards
Tony

Mat

unread,
Apr 12, 2020, 2:54:01 AM4/12/20
to TiddlyWiki
Peter, I made this for you http://forpeter.tiddlyspot.com/

It is probably not exactly how you describe what you want but it hopefully shows a few things. 

<:-)

Peter Buyze

unread,
Apr 12, 2020, 4:25:58 AM4/12/20
to TiddlyWiki forum
Mat, thanks a lot, that's exactly what I want.

I created a new tiddler and copy/pasted the code into the text box, but nothing is shown in the read mode.

--
Securely sent with Tutanota. Get your own encrypted, ad-free mailbox:


12 Apr 2020, 09:54 by matia...@gmail.com:
Peter, I made this for you http://forpeter.tiddlyspot.com/

It is probably not exactly how you describe what you want but it hopefully shows a few things. 

<:-)


--
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 tiddlywiki+...@googlegroups.com.

Mat

unread,
Apr 12, 2020, 5:26:42 AM4/12/20
to TiddlyWiki
Peter Buyze wrote:
I created a new tiddler and copy/pasted the code into the text box, but nothing is shown in the read mode.

Yeah, I don't know exactly how you've designed your system so the idea is that you investigate how I did it and see if the setup makes sense. For example see the ViewTemplate and the tagging of the passages, etc. Merely copying a single tiddler from it is likely not enough.

<:-) 

Peter Buyze

unread,
Apr 12, 2020, 6:10:41 AM4/12/20
to TiddlyWiki forum
OK, my apologies. I do thank you for your help.

Last question, if I may: in the top right hand corner of your BookList tiddler there is a double arrow to the right, which gives a preview of the edit mode of the tiddler. Would you mind telling me which plug-in you use for that?



12 Apr 2020, 12:26 by matia...@gmail.com:
--
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 tiddlywiki+...@googlegroups.com.

Eric Shulman

unread,
Apr 12, 2020, 6:48:01 AM4/12/20
to TiddlyWiki
On Sunday, April 12, 2020 at 3:10:41 AM UTC-7, Peter Buyze wrote:
Last question, if I may: in the top right hand corner of your BookList tiddler there is a double arrow to the right, which gives a preview of the edit mode of the tiddler. Would you mind telling me which plug-in you use for that?

Mat

unread,
Apr 12, 2020, 6:52:36 AM4/12/20
to TiddlyWiki
Yeah, that is the SideEditor plugin.

BTW, you can see all installed plugins via the Controlpanel, i.e by clicking on the cog wheel in the sidebar, and tab Plugins. Note that not every "extra feature" is packaged into plugins tho.

Also note that the SideEditor only shows the editview of the text field, i.e the main field seen in editview so you can't edit your other custom fields via it.

<:-)

Peter Buyze

unread,
Apr 12, 2020, 6:59:08 AM4/12/20
to TiddlyWiki forum
Thanks Mat and Eric.

--
Securely sent with Tutanota. Get your own encrypted, ad-free mailbox:


12 Apr 2020, 13:52 by matia...@gmail.com:
--
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 tiddlywiki+...@googlegroups.com.

Peter Buyze

unread,
Apr 13, 2020, 3:31:44 AM4/13/20
to TiddlyWiki forum
Mat, would you be willing to tell me how that nice table on the Read mode of the tiddler is done?
See screenshot.



12 Apr 2020, 12:26 by matia...@gmail.com:
Peter Buyze wrote:
--
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 tiddlywiki+...@googlegroups.com.
table.png

Birthe C

unread,
Apr 13, 2020, 3:57:11 AM4/13/20
to TiddlyWiki
You need the ViewTemplate.
Author, Source, Book, Remarks are trancluded from fields in the current tiddler.

Birthe

Peter Buyze

unread,
Apr 13, 2020, 4:13:45 AM4/13/20
to TiddlyWiki forum
Birthe, thanks for jumping in. I got the ViewTemplate, and am surprised to see there seems to be relevant code in there already - see screenshot.

Please excuse my total ignorance, but what should I do with the ViewTemplate?


--
Securely sent with Tutanota. Get your own encrypted, ad-free mailbox:


13 Apr 2020, 10:57 by strikke...@gmail.com:
--
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 tiddlywiki+...@googlegroups.com.

Birthe C

unread,
Apr 13, 2020, 4:27:57 AM4/13/20
to TiddlyWiki
Peter,
The ViewTemplate will show the table in every tiddler having the tag passage.
Create a tiddler tagged passage and create the relevant fields and you will have the table.

If this is what you want, you do not need to do anything with the ViewTemplate.

In you original question I think you had the information in the text area, that would be a problem at least I think.


Birthe

Peter Buyze

unread,
Apr 13, 2020, 5:07:05 AM4/13/20
to TiddlyWiki forum
Yes, that works.

In the screenshot below you see a filled in tiddler. In the 2nd screenshot you see the same tiddler in Read mode with the table. But in the box at "Book" there is a link code, which refers to the tiddler with the book name as title. Ideally that should be a clickable link. How can I turn it into one? Like in Mat's example, the tiddler boxes are filled in the same way.

--
Securely sent with Tutanota. Get your own encrypted, ad-free mailbox:


13 Apr 2020, 11:27 by strikke...@gmail.com:
--
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 tiddlywiki+...@googlegroups.com.

Mat

unread,
Apr 13, 2020, 5:13:33 AM4/13/20
to TiddlyWiki
Peter, yes, the viewtemplate is desgined to show the table.

About viewtemplates:

A tiddler is really a listing  of multiple viewtemplates. A viewtemplate is anything with the tag "$:/tags/ViewTemplate". There is e.g a viewtemplate for the title+buttons, another for the tags, another for the main text field, etc. Those viewtemplates are systemic viewtemplates and whose names are prefixed with "$:/" so you don't see them in the "lists". I made a custom viewtemplate for you, titled ViewTemplate for simplicity but you can change the title if you want. It contains a small html table because wikitext table, i.e the multiple <tr> thingies.

<:-)





On Monday, April 13, 2020 at 10:13:45 AM UTC+2, Peter Buyze wrote:
Birthe, thanks for jumping in. I got the ViewTemplate, and am surprised to see there seems to be relevant code in there already - see screenshot.

Please excuse my total ignorance, but what should I do with the ViewTemplate?


--
Securely sent with Tutanota. Get your own encrypted, ad-free mailbox:


13 Apr 2020, 10:57 by strikk...@gmail.com:
You need the ViewTemplate.
Author, Source, Book, Remarks are trancluded from fields in the current tiddler.

Birthe

mandag den 13. april 2020 kl. 09.31.44 UTC+2 skrev Peter Buyze:
Mat, would you be willing to tell me how that nice table on the Read mode of the tiddler is done?
See screenshot.


--
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 tiddl...@googlegroups.com.

Peter Buyze

unread,
Apr 13, 2020, 5:17:19 AM4/13/20
to TiddlyWiki forum
Mat, the Viewtemplate that I pulled up is from within my own TW file. Miraculously, it had your code, I think. How is that possible?

How can I get that link clickable next to the Book box?

--
Securely sent with Tutanota. Get your own encrypted, ad-free mailbox:


13 Apr 2020, 12:13 by matia...@gmail.com:
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.

Mat

unread,
Apr 13, 2020, 5:19:34 AM4/13/20
to TiddlyWiki
Peter Buyze wrote:
In the screenshot below you see a filled in tiddler. In the 2nd screenshot you see the same tiddler in Read mode with the table. But in the box at "Book" there is a link code, which refers to the tiddler with the book name as title. Ideally that should be a clickable link. How can I turn it into one? Like in Mat's example, the tiddler boxes are filled in the same way.

If you open "Religion (1) and bigotry" in edit mode, you see the custom fields area at the bottom.
As you can see, I only created the custom field "book".
If you create the custom fields for what you see in viewtemplate i.e author, source etc, and add the content these will show up too.

This syntax {{!!foo}} refers to a field titled foo and extracts the value from that field.

<:-)

Mat

unread,
Apr 13, 2020, 5:29:29 AM4/13/20
to TiddlyWiki
Peter Buyze wrote:
Mat, the Viewtemplate that I pulled up is from within my own TW file. Miraculously, it had your code, I think. How is that possible?

If you previously had made a tiddler titled with the exact same name and then imported my tiddler, my tiddler would replace yours. But, frankly, since you're new at this, I suspect you had just imported my tiddler to begin with.
 
How can I get that link clickable next to the Book box?

I'm not sure what you mean with "Book box" because if you mean the table cell it is already set up in the ViewTemplate so that the book title is a clickable link (as you can see in your own screenshot here).

<:-)

Eric Shulman

unread,
Apr 13, 2020, 5:31:33 AM4/13/20
to TiddlyWiki


On Monday, April 13, 2020 at 12:31:44 AM UTC-7, Peter Buyze wrote:
Mat, would you be willing to tell me how that nice table on the Read mode of the tiddler is done?
See screenshot.


which is tagged with $:/tags/ViewTemplate, and contains:
<$list filter="[all[current]tag[passage]]">
<hr>
<table>
<tr><td>Author</td><td>{{!!author}}</td></tr>
<tr><td>Source</td><td>{{!!source}}</td></tr>
<tr><td>Book</td><td><$link to={{!!book}}/>, p.{{!!page}}</td></tr>
<tr><td>Remarks</td><td>{{!!remarks}}</td></tr>
</table>
</$list>

The tag "$:/tags/ViewTemplate" indicates that the tiddler content should be shown when viewing a tiddler.
By default, that content will appear after the standard "body" content of the tiddler.
Note how the content is also wrapped within a <$list> widget, with a filter that checks to see if the current tiddler is tagged with "passage".
That limits the display of the content to only tiddler with the indicated tag value, so that "normal" tiddlers don't show the table.

enjoy,
-e


Peter Buyze

unread,
Apr 13, 2020, 6:25:50 AM4/13/20
to TiddlyWiki forum
thanks Mat, I got the clickable bit sorted.

In one of the screenshots I attached in a reply to Birthe, edu2.png, you can see in the References section 2 links to the same Tiddler (Eexceptional vs non-thinking person).

The 1st of the 2 shown as a collapsible transclsuion is what I want, in fact it is part of TiddleBlink, the version I am using. The 2nd link is a setting that must have snuck in, somehow ....
Any idea how I can disable that 2nd link?

--
Securely sent with Tutanota. Get your own encrypted, ad-free mailbox:


13 Apr 2020, 12:29 by matia...@gmail.com:
--
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 tiddlywiki+...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages