[tw5] Re: How to make a default field for a new record?

2021-07-16 Thread Eric Shulman
On Friday, July 16, 2021 at 6:06:17 AM UTC-7 miket...@gmail.com wrote: > ** In the list of EditTemplate definitions, drag-and-drop to move the URL > EditTemplate above "$:/core/ui/EditTemplate/fields"* > Where is the sort order stored? I thought in field *list *or > *list-before/after,* but did

[tw5] Re: How to make a default field for a new record?

2021-07-16 Thread Mike Andyl
But the last question ** From the URL EditTemplate tiddler view, click on the "$:/tags/EditTemplate" tag pill* ** In the list of EditTemplate definitions, drag-and-drop to move the URL EditTemplate above "$:/core/ui/EditTemplate/fields"* Where is the sort order stored? I thought in field

[tw5] Re: How to make a default field for a new record?

2021-07-16 Thread Mike Andyl
Thanks a lot for the tips, they are all good and each has its own bonuses! Now I need to choose the best one for myself :) Very useful and learned a lot about the work of TW. пятница, 16 июля 2021 г. в 12:11:23 UTC+3, Álvaro: > Yes, you are right. I thought in the my usual way to create new

[tw5] Re: How to make a default field for a new record?

2021-07-16 Thread Álvaro
Yes, you are right. I thought in the my usual way to create new records, I don't usualy use new journal or new image. Then we can use a hack in $:/core/ui/EditTemplate/fields which displays a fake(/"empty") url field, we don't have a real url field until you type and save its value. The hack

[tw5] Re: How to make a default field for a new record?

2021-07-15 Thread Eric Shulman
On Thursday, July 15, 2021 at 6:25:29 PM UTC-7 Álvaro wrote: > Yes, because I focused on explaining the problem. The base of the solution > is *<$action-sendmessage $message="tm-new-tiddler" url="" />* > The hard version is modifing the action-sendmessage in the tiddler >

[tw5] Re: How to make a default field for a new record?

2021-07-15 Thread Álvaro
Yes, because I focused on explaining the problem. The base of the solution is *<$action-sendmessage $message="tm-new-tiddler" url="" />* The hard version is modifing the action-sendmessage in the tiddler *$:/core/ui/Actions/new-tiddler * *<$action-sendmessage $message="tm-new-tiddler"

[tw5] Re: How to make a default field for a new record?

2021-07-15 Thread Eric Shulman
On Thursday, July 15, 2021 at 5:00:33 PM UTC-7 Álvaro wrote: > I talk about two options: template tiddler or second action for create the > url field, but there is a easier way: > While your $button definition works, it doesn't meet the goals of the OP. Specifically: *I want the "url" field

[tw5] Re: How to make a default field for a new record?

2021-07-15 Thread Álvaro
Because you don't have a url field when you create with buttons with the basic "tm-new-tiddler". The created tiddlers have the tags field, but it doesn't have this url field, then it can't be displayed. Only the usual fields (tags, title, text, ...) have this setting (

[tw5] Re: How to make a default field for a new record?

2021-07-15 Thread Eric Shulman
On Thursday, July 15, 2021 at 3:05:36 PM UTC-7 miket...@gmail.com wrote: > Brian, yes, but it looks bad and that's what I want to avoid. > https://i.imgur.com/Amptssc.jpg > The first problem is that the URL field will appear twice when the field has a value: * once because it exists as a field

[tw5] Re: How to make a default field for a new record?

2021-07-15 Thread Mike Andyl
Brian, yes, but it looks bad and that's what I want to avoid. https://i.imgur.com/Amptssc.jpg I can make the *tags *field visible right away *$:/config/EditTemplateFields/Visibility/tags*, why can't I do the same with the *url *field? https://i.imgur.com/pR5azka.jpg четверг, 15 июля 2021 г. в

[tw5] Re: How to make a default field for a new record?

2021-07-15 Thread Álvaro
I don't know if I understand you. When you create a new (default) tiddler, it has the default fields. You can see them in the info panel (except the text field). Then you can: - Create a new tiddler and then add the url field (tm-add-field) - Create a new tiddler from template tiddler (with url

[tw5] Re: How to make a default field for a new record?

2021-07-15 Thread Brian Radspinner
Try adding the following code to a new tiddler tagged with "$:/tags/EditTemplate" url <$edit-text field="url" default="" tag="input"/> This will put a table styled like the other fields list with the URL field showing in the tiddler editor. On Thursday, July 15, 2021 at 9:00:22 AM

[tw5] Re: How to make a default field for a new record?

2021-07-15 Thread Brian Radspinner
Try adding the following code to a new tiddler tagged with "$:tags/EditTemplate" url <$edit-text field="url" default="" tag="input"/> This will put a table styled like the other fields list with the URL field showing in the tiddler editor. On Thursday, July 15, 2021 at 9:00:22 AM