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 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 would be:
>
> <div class="tc-edit-fields">
> <table class={{{ [all[current]fields[]]
> :filter[lookup[$:/config/EditTemplateFields/Visibility/]!match[hide]]
> +[count[]!match[0]] +[then[tc-edit-fields]] ~[[tc-edit-fields
> tc-edit-fields-small]] }}}>
> <tbody>
> <$list filter="[all[current]fields[]] +[sort[title]]"
> variable="currentField" storyview="pop">
> to
> <$list filter="[all[current]fields[]] *[[url]]* +[sort[title]]"
> variable="currentField" storyview="pop">
>
>
> El viernes, 16 de julio de 2021 a las 6:04:57 UTC+2, Eric Shulman escribió:
>
>> 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
>>> *$:/core/ui/Actions/new-tiddler*
>>> *<$action-sendmessage $message="tm-new-tiddler" tags=<<get-tags>>/>*
>>> to
>>> *<$action-sendmessage $message="tm-new-tiddler" tags=<<get-tags>>
>>> url=""/>*
>>>
>>
>> Once again, I have to point out that this only changes the behavior of
>> the "New Tiddler" button and *does not fully address the OP goal* *(*"*the
>> url field to be always visible from the start for all new records.")*
>>
>> There are *at least 6 other ways* to interactively create another
>> tiddler:
>> * New Journal in the Sidebar
>> * New Image in the Sidebar
>> * New Here in the Tiddler Menu
>> * New Journal Here in the Tiddler Menu
>> * Follow a link to a missing tiddler, and then edit that tiddler
>> * Any 3rd-party plugin or hand-written custom wikitext that contains a
>> $button using "tm-new-tiddler",
>>
>> The only solution that handles all these cases (and any others that I
>> haven't thought of at the moment) is to modify the EditTemplate as
>> suggested by Brian Radspinner, with the small UI improvements suggested by
>> me to remove the duplicate appearance of the "url" field, position it above
>> the "create new field" interface in the tiddler editor, and enable use of
>> $:/config/EditTemplateFields/Visibility/URL
>>
>> respectfully,
>> -e
>>
>
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/d64a7e66-6232-4993-ba65-3b23b0527768n%40googlegroups.com.