Re: [tw5] Re: Understanding Templates, Macros, Etc.

2021-05-31 Thread Hans Wobbe
Nice!

The smacking sound you probably heard was my palm hitting my forhead.  It 
simply had not occured to me to use ...PageControls to add key buttons in 
this manner.

Thank to both of you for an informative Question and Answer.

Cheers,
Hans


On Sunday, May 30, 2021 at 3:53:49 PM UTC-4 Eric Shulman wrote:

> On Sunday, May 30, 2021 at 12:35:52 PM UTC-7 rj...@blackperl.com wrote:
>
>> is there a way to assign it an icon and have it be an action that I can 
>> configure into my main menu-bar?
>>
> 1) First, create a tiddler (e.g., "New Project"), containing the desired 
> "skeleton content" and tags.
> 2) Next, create a tiddler (e.g., "NewProjectButton"), containing a $button 
> definition like this:
> <$button message="tm-new-tiddler" param="New Project" tooltip="Create a 
> new Project tiddler" class="tc-btn-invisible">
>{{$:/core/images/spiral}}
> 
> 3) Tag "NewProjectButton" with *$:/tags/PageControls*
>
> Notes:
> * You can name the tiddlers anything you like
> * Use class="tc-btn-invisible" so the $button just displays the icon 
> without any border or background color
> * Replace $:/core/images/spiral with any tiddler containing a small 
> button-sized image
>
> 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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/01b0de6f-70aa-4f45-8e69-f51799764bd6n%40googlegroups.com.


Re: [tw5] Re: Understanding Templates, Macros, Etc.

2021-05-30 Thread Eric Shulman
On Sunday, May 30, 2021 at 12:35:52 PM UTC-7 rj...@blackperl.com wrote:

> is there a way to assign it an icon and have it be an action that I can 
> configure into my main menu-bar?
>
1) First, create a tiddler (e.g., "New Project"), containing the desired 
"skeleton content" and tags.
2) Next, create a tiddler (e.g., "NewProjectButton"), containing a $button 
definition like this:
<$button message="tm-new-tiddler" param="New Project" tooltip="Create a new 
Project tiddler" class="tc-btn-invisible">
   {{$:/core/images/spiral}}

3) Tag "NewProjectButton" with *$:/tags/PageControls*

Notes:
* You can name the tiddlers anything you like
* Use class="tc-btn-invisible" so the $button just displays the icon 
without any border or background color
* Replace $:/core/images/spiral with any tiddler containing a small 
button-sized image

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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/1aca81b0-3224-4398-9b21-18974cf7d728n%40googlegroups.com.


Re: [tw5] Re: Understanding Templates, Macros, Etc.

2021-05-30 Thread Randy J. Ray
It is good to be welcomed, even as a newcomer. Many communities are not 
so generous :-).


One follow-up question, though: when you say, "add the following $button 
wherever you like", do you mean within an existing tiddler? Or is there 
a way to assign it an icon and have it be an action that I can configure 
into my main menu-bar?


Randy


On 5/29/21 3:21 PM, Eric Shulman wrote:

On Saturday, May 29, 2021 at 2:36:29 PM UTC-7 rj...@blackperl.com wrote:

Please forgive the somewhat newbie-ish post.

You don't need to ask for "forgiveness"... this group welcomes 
"newbies" with open arms.


I want to be able to click a button and create a new "Project"
tiddler, in which a few basic tags are set but which also has the
skeleton content of:

!!Materials

!!!Kits/Aftermarket

!!!Accessories

!!References

!!Web References

!!Notes


1) First, create a tiddler (e.g., "ProjectStarter"), containing the 
desired "skeleton content" and tags.

2) Next add the following $button wherever you like:
<$button message="tm-new-tiddler" param="ProjectStarter">New 
Project


That's it.  When you press the "New Project" button, it will open a 
new tiddler for editing with the indicated default starting content.


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 tiddlywiki+unsubscr...@googlegroups.com 
.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/dfb7829e-31c8-468b-9777-e407e9b5f588n%40googlegroups.com 
.


--
"""
Randy J. Ray  San Jose, CA
rj...@blackperl.com
twitter.com/rjray
Silicon Valley Scale Modelers: http://www.svsm.org

--
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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/9dbe27d5-9772-3bf3-8b4c-6841bb136750%40blackperl.com.


[tw5] Re: Understanding Templates, Macros, Etc.

2021-05-30 Thread TiddlyTweeter
Ciao Eric

Truthfully, your solutions are usually so elegant and to-the-point it is 
astonishing.
You are everyone's aid. 
Both Newbie *(hi rj ...!)* and Long-In-the-Tooth.

I truly wish that we could publicly UPVOTE on this group.
I am sure you would get huge numbers of upvotes for SOLVING problems.
Such upvotes would help end-users find viable solutions.

Best wishes
TT

On Sunday, 30 May 2021 at 00:21:37 UTC+2 Eric Shulman wrote:

> On Saturday, May 29, 2021 at 2:36:29 PM UTC-7 rj...@blackperl.com wrote:
>
>> Please forgive the somewhat newbie-ish post. 
>>
> You don't need to ask for "forgiveness"... this group welcomes "newbies" 
> with open arms. 
>
>> I want to be able to click a button and create a new "Project" tiddler, 
>> in which a few basic tags are set but which also has the skeleton content 
>> of:
>>
>> !!Materials
>>
>> !!!Kits/Aftermarket
>>
>> !!!Accessories
>>
>> !!References
>>
>> !!Web References
>>
>> !!Notes
>>
>>
> 1) First, create a tiddler (e.g., "ProjectStarter"), containing the 
> desired "skeleton content" and tags.
> 2) Next add the following $button wherever you like:
> <$button message="tm-new-tiddler" param="ProjectStarter">New 
> Project
>
> That's it.  When you press the "New Project" button, it will open a new 
> tiddler for editing with the indicated default starting content.
>
> 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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/43d5451d-1523-420b-84c3-2dc8ef1625bbn%40googlegroups.com.


[tw5] Re: Understanding Templates, Macros, Etc.

2021-05-29 Thread Eric Shulman
On Saturday, May 29, 2021 at 2:36:29 PM UTC-7 rj...@blackperl.com wrote:

> Please forgive the somewhat newbie-ish post. 
>
You don't need to ask for "forgiveness"... this group welcomes "newbies" 
with open arms. 

> I want to be able to click a button and create a new "Project" tiddler, in 
> which a few basic tags are set but which also has the skeleton content of:
>
> !!Materials
>
> !!!Kits/Aftermarket
>
> !!!Accessories
>
> !!References
>
> !!Web References
>
> !!Notes
>
>
1) First, create a tiddler (e.g., "ProjectStarter"), containing the desired 
"skeleton content" and tags.
2) Next add the following $button wherever you like:
<$button message="tm-new-tiddler" param="ProjectStarter">New 
Project

That's it.  When you press the "New Project" button, it will open a new 
tiddler for editing with the indicated default starting content.

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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/dfb7829e-31c8-468b-9777-e407e9b5f588n%40googlegroups.com.