[TW5] Display order of custom fields

97 views
Skip to first unread message

StephanF

unread,
May 16, 2017, 12:19:57 PM5/16/17
to TiddlyWiki
Thanks ahead of time!

I use buttons to create several different styles of new journal tiddlers that include several custom fields. The fields are created in the order i would like them displayed when editing the resulting new tiddler, but instead they are displayed alphabetically. How can I control/modify the display order?
Here is an example

\define spfFinanceButton()
<$button tooltip={{$:/language/Buttons/NewJournal/Hint}} aria-label={{$:/language/Buttons/NewJournal/Caption}}> New Finance Journal
<$action-sendmessage $message="tm-new-tiddler" title=<<now "$(journalTitleTemplate)$">> tags="$(journalTags)$ jrnl_fin" text="Financial Transaction<hr>" subject="" from="" to ="" amount=0 />
</$button>
\end

when editing, the field entry area is ordered: amount, from, subject, to; rather than in the creation order (subject, from, to, amount).

I am still a newbie, so I suspect the answer will be easy and apparent once I know what it is!


@TiddlyTweeter

unread,
May 16, 2017, 2:09:23 PM5/16/17
to TiddlyWiki
 PMario wrote something that will list fields in the editor in custom order. I'll see if I can find the post about it.

Best wishes
Josiah

@TiddlyTweeter

unread,
May 16, 2017, 2:27:02 PM5/16/17
to TiddlyWiki
Ciao Stephan,

This is the thread on custom field order in editor ...

Perhaps it will help.

Best wishes
Josiah

StephanF

unread,
May 16, 2017, 2:50:28 PM5/16/17
to TiddlyWiki
PMario's solution works perfectly! Thanks so much for looking it up.

BTW, from brief testing it looks to be true that the fields listed in the reference tiddler (field-sort) can be from a variety of templates. I have not yet tried the case where a field name is created that is not listed in the reference tiddler.

Regards,
Stephan

PMario

unread,
May 16, 2017, 5:29:35 PM5/16/17
to TiddlyWiki
On Tuesday, May 16, 2017 at 8:50:28 PM UTC+2, StephanF wrote:
PMario's solution works perfectly! Thanks so much for looking it up.
 
yea \o/
Reply all
Reply to author
Forward
0 new messages