Clickable fields in the 'Fields' tab of the info button

30 views
Skip to first unread message

Reinhard Engel

unread,
Jan 15, 2022, 6:08:08 AM1/15/22
to TiddlyWiki
Is it somehow possible to make the fields in the 'Fields' tab of the 'Show information from this tiddler` button clickable?

If a field contains an url, I would like to be able to click just on the fieldname in order to jump to the webpage belonging to the url.

Eric Shulman

unread,
Jan 15, 2022, 6:49:31 AM1/15/22
to TiddlyWiki
The "Fields" tab content is defined in:  $:/core/ui/TiddlerFieldTemplate, which contains:
```
<tr class="tc-view-field"> <td class="tc-view-field-name"> <$text text=<<listItem>>/> </td> <td class="tc-view-field-value"> <$view field=<<listItem>>/> </td> </tr>
```

If you change `<$view field=<<listItem>>/>` to `<$transclude field=<<listItem>>/>`
then the display of the field contents will be "wikified".

This will cause any WikiWords contained in the field values to be rendered as tiddler links,
and any text starting with "http://", "https://", etc. will be rendered as external links.

enjoy,
-e
Reply all
Reply to author
Forward
0 new messages