Hi BJ,

I looked at both your most helpful references to the WidgetMessage 
*tm-new-tiddler* and the UI Tiddler *$:/core/ui/Buttons/new-tiddler* and 
believed that I had this figured out.  I was even able to create a button 
within a tiddler that did exactly what I wanted using the example within 
the *tm-new-tiddler* documentation.

But when I added a *text="Text in new tiddler."* like shown below to the 
*$:/core/ui/Buttons/new-tiddler, 
*it failed to work.  Any ideas from anyone on what else I need to change to 
place default text within the generated new tiddlers using the UI New 
Tiddler button?

<$button message="tm-new-tiddler" 
tooltip={{$:/language/Buttons/NewTiddler/Hint}} 
aria-label={{$:/language/Buttons/NewTiddler/Caption}} *text="Text in new 
tiddler."* class=<<tv-config-toolbar-class>>>
<$list filter="[<tv-config-toolbar-icons>prefix[yes]]">
{{$:/core/images/new-button}}
</$list>
<$list filter="[<tv-config-toolbar-text>prefix[yes]]">
<span class="tc-btn-text"><$text 
text={{$:/language/Buttons/NewTiddler/Caption}}/></span>
</$list>
</$button>

The code within the UI Button is much more confusing than the online 
example.

Thanks in advance to all replies,

-Doug




On Thursday, February 9, 2017 at 3:16:02 AM UTC-6, BJ wrote:
>
> Hi Doug,
> the relevant documentation is under 
> http://tiddlywiki.com/#WidgetMessage%3A%20tm-new-tiddler
>
> If you want to change the default button the code is in
>
> $:/core/ui/Buttons/new-tiddler
>
> all the best 
> BJ
>
> On Thursday, February 9, 2017 at 5:51:32 AM UTC+1, Douglas Counts wrote:
>>
>> I appreciate your response but I'm looking for a way to place default 
>> content inside the "New Tiddler" as I may wish to make changes to it.  Your 
>> method, while helpful, puts the same content on all the pre-existing 
>> tiddlers too.
>>
>> I'm looking for a way to define my initial"New Tiddler" content that can 
>> then be changed or even deleted.
>>
>> Any other ideas out there?
>>
>> Thank you.
>>
>> On Wednesday, February 8, 2017 at 10:19:34 PM UTC-6, Riz wrote:
>>>
>>> If you want a particular content in all your tiddlers, you are better 
>>> off with viewtemplate.
>>>
>>> Create a tiddler, put your footer in text field.
>>> Add "$:/tags/ViewTemplate" as tag
>>> Create a field called list-after, add the value as "
>>> $:/core/ui/ViewTemplate/body 
>>> <http://tiddlywiki.com/#%24%3A%2Fcore%2Fui%2FViewTemplate%2Fbody>"
>>>
>>> Now your footer will be added to every tiddler and you can see it when 
>>> you save the tiddler.
>>>
>>> PS: the third step is unnecessary. 
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/fa41823f-780c-4d18-b745-41d8f84fcad8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to