How to add custom tags to tiddler form (EditTagLikeList macro)

67 views
Skip to first unread message

jay

unread,
Oct 1, 2019, 11:09:19 AM10/1/19
to TiddlyWiki
Hi all!

I'm newish to tiddlywiki so forgive me if there's an easy answer to this. I'm using the ooktech generic tags plugin (https://ooktech.com/jed/ExampleWikis/GenericTagFields/) and I'm hoping it might be really helpful.  I'm trying to intergrate it to my 'new journal form' tiddler which currently looks like this (see attached photo).  The code is :

<table>
<$tiddler tiddler="$:/state/new-journal-text">
<tr>
<th><h3>Caption </h3></th>
<th><h3><$edit-text tiddler="$:/state/popup/new-journal-caption" minHeight="100%" tag="input" default="New Journal Entry Title" /></h3></th></tr>
<tr><th colspan="2">

<<EditTagLikeList journaltag journaltag wikify>>

</th></tr>
<tr>
<th><h3>Entry </h3></th><th><$button>Writing Prompts</$button></th>
</tr><tr>
<th colspan="2">
<$transclude tiddler="$:/core/ui/EditTemplate/body/editor"/>
</th>
</tr>
<tr>
<th colspan="2">Current Journal Tags
<$list filter="[tags:journaltag[]] +[sort[title]]" >{{||$:/core/ui/TagTemplate}}
</$list>
</th></tr><tr>
<th colspan="2" align="center">
<$button><$action-createtiddler $basetitle=<<now "DD/MM/YYYY hh:mm ss 日志">>tags="Journal" caption={{$:/state/popup/new-journal-caption}} text={{$:/state/new-journal-text}}/><$action-deletetiddler $tiddler="$:/state/new-journal-text"/><$action-deletetiddler $tiddler="$:/state/popup/new-journal-caption"/>Add to Journal</$button></th>
</tr>
<table>

My problem is the application of the EditTagLikeList macro, how can I make it apply to the tiddler that I'm generating with this form? Any advice would be really helpful because I'm super stuck.


Screenshot 2019-10-01 at 16.03.53.png

TonyM

unread,
Oct 1, 2019, 8:32:37 PM10/1/19
to TiddlyWiki
Jay

I can help you more when I return to my desk but the answers should lay in the gentags doco, perhaps on its demo site.

More often than not the way we get content to appear on individual tiddlers is hard code it in the text but to get in to appear on multiple tiddler as we do more often than not, is via the view or edit templates for which there are system tags.

Test some code in a tiddler to behave how you want then tag it for the view template you want.

I am confident gentags even guides you to do this.

Regards
Tony

Birthe C

unread,
Oct 1, 2019, 10:11:18 PM10/1/19
to TiddlyWiki
Hi jay,

Did you set journaltag as Alternate Tags Field in control panel?

If, then you have to add journaltag field when you create your tiddler. Put this: journaltag={{!!journaltag}} in your action-createtiddler


Birthe
Reply all
Reply to author
Forward
0 new messages