I'm guessing it likely is a difficult thing, otherwise it would have been
done long ago?
[[some title]] is just a mechanism to show a link that jumps off to the
titled tiddler. It is sweet and simple, and never fails at that purpose:
opening a tiddler "window". That window then just displays without doing
actions. Display existing content of all fields in widgets, but not
setting the content of those fields. Setting content requires an action by
a user. The push of a button.
Not forgetting that the mechanism also handles [[ I prefer show this text |
some title ]]
For smarts above and beyond, that's custom behaviour handled by button
widgets, action widgets, filters, transclusions, transclusion templates ...
all of the stuff for smarts to handle how most of your tiddlers get
created, while knowing what to do with the exceptions to the most common
tiddlers.
Aside: the transclusion template approach in my previous post. Way less
wordy, once you get used to abbreviations, to use things like {{John
Doe||tS}} instead of the brutally wordy (but more descriptive for
discussion) {{ John Doe || setAsStudent }}
On Saturday, May 1, 2021 at 8:52:59 AM UTC-3 [email protected] wrote:
> Is this really such a difficult thing? I can create new tiddlers with
> custom text using a button, but I want to be able to do that from [[New
> Tiddler With Text]] links, which is how most of my new tiddlers get created.
>
> Is there no default blank tiddler that I can edit to have this work?
>
> On Friday, 30 April 2021 at 16:46:53 UTC+1 Jax Kovak wrote:
>
>> Thanks again, but I already found this thread and it doesn't help. It
>> creates new Tiddlers from a button which I can already do. I want to be
>> able to change the text in a new Tiddler that is created by clicking a link
>> in text, no buttons required. So if I type [New Tiddler Link]] and click
>> that in the Wiki a new Tiddler with that name is created. That is the kind
>> of Tiddler I want to change. The button created ones don't seem to affect a
>> Tiddler created like this.
>>
>> On Fri, 30 Apr 2021 at 16:20, Jean-Pierre Rivière <[email protected]>
>> wrote:
>>
>>> Search for NewHere button. An old thread contains a lot of information
>>> for a similar quest.
>>> Le vendredi 30 avril 2021 à 17:10:04 UTC+2, [email protected] a
>>> écrit :
>>>
>>>> Thanks Jean-Pierre, but I don't want to change the
>>>> standard functionality to do this, in fact I'd much rather edit the
>>>> default
>>>> template that you mention, but I just don't know the name of it! Now if
>>>> you
>>>> can tell me the name of that default template I might well have the
>>>> answer! 😉
>>>>
>>>> On Fri, 30 Apr 2021 at 10:14, Jean-Pierre Rivière <
>>>> [email protected]> wrote:
>>>>
>>>>> I have a kind of a solution for journal tiddler. Journal because you
>>>>> can simply define default text for new journal. For common tiddlers,
>>>>> you'd
>>>>> have to mess with the default template.
>>>>>
>>>>> first, I define a macro called autotext. For instance:
>>>>>
>>>>> \define autotext(clever)
>>>>> <$set name=hail value="Hi! I'n a new tiddler.
>>>>>
>>>>> !! $clever$
>>>>> ">
>>>>> <$action-setfield $field=text $value=<<hail>>/>
>>>>> </$set>
>>>>> \end
>>>>>
>>>>> An then I add this as default text for new journal tiddler:
>>>>>
>>>>> << autotext "This is great!">>
>>>>>
>>>>> And when I create a new journal, it appears with the default text
>>>>> above. Just validate it. You see a "do it" button. Just click it. And
>>>>> presto! your text is now set as the hail variable was computed (along
>>>>> your
>>>>> need).
>>>>>
>>>>> The trick is to be in action mode to be able to change the fields of
>>>>> the tiddler. Which you are not when the initial text is inserted as this
>>>>> experiment do show you (although it could have been the case since in the
>>>>> creation of a new journal, you begin by clicking on a button).
>>>>> Le jeudi 29 avril 2021 à 19:12:46 UTC+2, [email protected] a écrit :
>>>>>
>>>>>> Hello.
>>>>>>
>>>>>> Thanks to posts in this group I have been able to create new buttons
>>>>>> that are used to create various custom Tiddlers. These are simple and
>>>>>> work
>>>>>> very well, however I would like to take this one stage further.
>>>>>>
>>>>>> The vast majority of my new Tiddlers are created via standard square
>>>>>> bracket links in text that are added on the fly and then clicked to
>>>>>> create
>>>>>> the new Tiddler.
>>>>>>
>>>>>> What I want is for those new Tiddlers that are created by clicking on
>>>>>> links in text, to be created with some text already in them. I'm not
>>>>>> worried about adding tags at this stage.
>>>>>>
>>>>>> Is there a system default Tiddler (or some other mechanism) that I
>>>>>> can edit or create so that ALL Tiddlers created when clicking on a text
>>>>>> link will have my default text in them?
>>>>>>
>>>>>> Many thanks for your time
>>>>>>
>>>>>> Jax
>>>>>>
>>>>>>
>>>>>> --
>>>>> You received this message because you are subscribed to a topic in the
>>>>> Google Groups "TiddlyWiki" group.
>>>>> To unsubscribe from this topic, visit
>>>>> https://groups.google.com/d/topic/tiddlywiki/tf-7T3zxEo0/unsubscribe.
>>>>> To unsubscribe from this group and all its topics, send an email to
>>>>> [email protected].
>>>>> To view this discussion on the web visit
>>>>> https://groups.google.com/d/msgid/tiddlywiki/5c301311-9a8d-4ba7-be08-7cabce896fecn%40googlegroups.com
>>>>>
>>>>> <https://groups.google.com/d/msgid/tiddlywiki/5c301311-9a8d-4ba7-be08-7cabce896fecn%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>>> .
>>>>>
>>>> --
>>> You received this message because you are subscribed to a topic in the
>>> Google Groups "TiddlyWiki" group.
>>> To unsubscribe from this topic, visit
>>> https://groups.google.com/d/topic/tiddlywiki/tf-7T3zxEo0/unsubscribe.
>>> To unsubscribe from this group and all its topics, send an email to
>>> [email protected].
>>>
>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/tiddlywiki/9f53952d-5ab2-42a2-9531-8081270fec3en%40googlegroups.com
>>>
>>> <https://groups.google.com/d/msgid/tiddlywiki/9f53952d-5ab2-42a2-9531-8081270fec3en%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>
--
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/923dd817-af4f-4629-a3b9-8cae160dbbd8n%40googlegroups.com.