This may be give a more consistent result

replace
<$button class="tc-btn-invisible">



with
<$button class=<<tv-config-toolbar-class>> >


--Mohammad

On Thursday, December 19, 2019 at 3:51:11 PM UTC+3:30, Eric Shulman wrote:
>
> On Thursday, December 19, 2019 at 3:17:36 AM UTC-8, Chuck R. wrote:
>>
>> On the right side of my TW there are default buttons like "+" which adds 
>> a new tiddler. How do I add another ADD button which has predefined content 
>> and tags? I'm adding one study per new tiddler and I'd like each study 
>> tiddler to have a tag of "study" but also have this content as a template: 
>> Source: 
>>
>> ! Findings
>>
>> ! Abstract
>>
>> I'm new to this type of changes to TW so if you could explain each steps, 
>> where each data goes, and speak slowly, I think I will get it. :)
>>
>
> The right hand panel is called "the Sidebar".  The "Page Controls" buttons 
> that appear at the top of the sidebar (e.g., "new tiddler", "control 
> panel", "save changes", etc.) are not stored in a single tiddler.  Rather, 
> each button definition has it's own tiddler, and these tiddlers are all 
> tagged with "$:/tags/PageControls" to indicate that they should appear in 
> that part of the Sidebar.
>
> To define your own button, create a new tiddler (e.g., "MyButton")
>
> 1) First, add the $:/tags/PageControls tags to that tiddler.
> 2) Next, enter your button definition into the text area, like this:
> <$button class=<<tv-config-toolbar-class>> >
>    <$list filter="[<tv-config-toolbar-icons>match[yes]]">
>       {{$:/core/images/spiral}}
>    </$list>
>    <$list filter="[<tv-config-toolbar-text>match[yes]]">
>       <span class="tc-btn-text"><$text text="New Study"/></span>
>    </$list>
>    <$action-sendmessage $message="tm-new-tiddler" tags="study" 
> text={{MyButtonTemplate}}/>
> </$button>
> 3) Then, add a new field named "caption".  In this field, enter:
> {{$:/core/images/spiral}} New Study
> 4) and add another new field named "description".  In this field, enter:
> Use this button to create a new Study tiddler with default content
>
> Then, create a separate tiddler named "MyButtonTemplate", containing the 
> default content you want, i.e.,
> Source: 
>
> ! Findings
>
> ! Abstract
>
>
> Once you have defined these tiddlers, it will automatically appear as a 
> Page Control at the top of the Sidebar.
>
> You can re-position this button to put it the desired order alongside the 
> other PageControls
> To do this, open the $:/ControlPanel (click the gear icon in the Sidebar).
>
> 1) The $:/ControlPanel has multiple levels of "tabs" for getting to the 
> controls you need.
> 2) Select the "Appearance" tab (across the top).  This will show a second 
> level of tabs:
> "Palette", "Story View", "Theme", "Toolbars" and "Theme Tweaks".
> 3) Select the "Toolbars" tab.  This will show a third level of tabs, 
> displayed vertically on the left:
> "Edit Toolbar", "Editor Toolbar", "Page Toolbar" and "View Toolbar".
> 4) Select the "Page Toolbar" tab.  This will display a set of checkboxes, 
> showing all the buttons that are tagged with "$:/tags/PageControls".
>
> If you've created your tiddler correctly, your new button will appear at 
> the bottom of this list.
> To reposition it, just grab it with the mouse and drag it to move it 
> within the list.
>
> That should do it.  Let me know how it goes...
>
> enjoy,
> -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/cb9f5a21-0a5f-4dda-b1f0-cfb6974b4188%40googlegroups.com.

Reply via email to