wikifying custom fields

72 views
Skip to first unread message

Xavier Roy

unread,
May 19, 2020, 4:17:13 AM5/19/20
to TiddlyWiki
Hi all,

I've been using TiddlyWiki on and off for some years. Recently I found an old tiddlywiki that contains quotations on a backup disk nearly a decade ago and I wanted to restart my TiddlyWiki journey.

I have a couple of custom fields:  'writer'  and book as part of my tiddlers. I am displaying the values in the tiddler as 'by {{!!writer}} in // {{!!book}} //'. I am trying to create a tiddler automatically for each book and writer using the custom field values. 

Is it possible to wikify a custom field within the tiddler? 


Thanks
Xavier

Mat

unread,
May 19, 2020, 4:54:35 AM5/19/20
to TiddlyWiki
Xavier, welcome back, if that is the right term then :-)

A first step is to make clear if you're using TiddlyWiki5 or the old version which is now known as TiddlyWiki Classic or (TiddlyWiki2).
When you type <<version>> in a tiddler and save the tiddler, what does it say?

<:-)

Xavier Roy

unread,
May 19, 2020, 5:54:37 AM5/19/20
to TiddlyWiki
Thanks Mat. 

Forgot that version info. This is TW5. 

I figured out one way to wikify the fields now: by <$link to={{!!writer}}>{{!!writer}}</$link> in // <$link to={{!!book}}>//{{!!book}}//</$link> //

Is this the right way or is there a simpler way to do the above?

Thanks
Xavier

Mat

unread,
May 19, 2020, 6:04:55 AM5/19/20
to TiddlyWiki
 Is this the right way or is there a simpler way to do the above?

Yeah that expression can be shortened to

<$link to={{!!writer}}/> in // <$link to={{!!book}}/>//

BTW, I'm not sure "wikify" is the correct term here (...but I'm also a bit uncertain what exactly wikify does mean). I think linkify might be a more appropriate term for what you're doing.

<:-)

Xavier Roy

unread,
May 19, 2020, 6:22:11 AM5/19/20
to TiddlyWiki
Yes.linkify is the right word. :-) Thanks for the simpler version.

Is there a way to pass on the title of a tiddler as a filter value? Like can I do something like this with a 'book' tiddler :

<$list filter="[book[!!title]+[sort[title]]">

I am trying to pass the value of the book field to a list filter so that I can list all the quotes listed in a new tiddler?


Thanks
Xavier

Mat

unread,
May 19, 2020, 6:44:35 AM5/19/20
to TiddlyWiki
Here's a scenario that might not exactly be how you do it but it should give some info about how to approach it:

There are several tiddlers tagged "book". There are several other tiddlers (quotes) which have a custom field named book, holding the name of a book title, and it has a quote in its text field.

<$list filter="[tag[book]]">
<$link/>
<br>
<$list filter="[book{!!title
}]">
<$transclude/>
<br>
</$list>
</$list>

<:-)
Reply all
Reply to author
Forward
0 new messages