[tw5] Re: Create new tiddler from template fill title an jump to text field

2018-04-23 Thread Ste Wilson
Thank you both for that. 
@robin
Of course the solution's on inmysocks...everything is on there :D 

Note to self.. Check socks first. 

-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/9f69d96c-0365-4471-a05f-24f42565e1b5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Create new tiddler from template fill title an jump to text field

2018-04-23 Thread Robin
I actualy did that too

In the template I created the field city_name
and on the other tiddler I added 

$edit-text tiddler="MyTemplate" field="city_name" default="" placeholder='City 
name'/>

to get a textbox to fill in the value of that field

<$action-setfield $tiddler="MyTemplate" $field="city_name" $value=""/>
This I added to clear the field for later use see below



<$button>Make Tiddler
<$action-navigate $to={{MyTitle}}/>
<$action-setfield $tiddler='MyTemplate' $field='title' $value={{MyTitle}}/>
<$action-sendmessage $message="tm-edit-tiddler" $param={{MyTitle}}/>
<$action-setfield $tiddler="MyTemplate" $field="city_name" $value=""/>
<$action-deletefield $tiddler=MyTitle text/>



Probably not the most elegant method but it worked for me

after all this I found this example 

And I learned a lot from it maybe it is of some use to you.



-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/60346632-958a-4acd-a35e-f508f316a44a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Create new tiddler from template fill title an jump to text field

2018-04-22 Thread Craig Chandler
Add your field in the  action-sendmessage parameters, ie:

<$action-sendmessage $message="tm-new-tiddler" param="MyTemplate" 
title="NewTitle" myField="my field value" />


On Sunday, 22 April 2018 22:13:38 UTC+9:30, Ste Wilson wrote:
>
> Sorry to drag this back up but I'm a bear of little brain. 
>
> I get that this can make a new tiddler with a title entered into the 
> presented field box... 
>
> Can this be extended to ask for some more fields which get filled in in 
> the new tiddler too? 
>
> Stephen
>
>

-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/c2b9054f-26f5-40b1-a794-8fe408de5800%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Create new tiddler from template fill title an jump to text field

2018-04-22 Thread Ste Wilson
Yeah. The clone tiddler has been my goto button but this could be.. Shinier :D

-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/1c749778-380f-4772-8eb6-8fa52d3c6d9f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Create new tiddler from template fill title an jump to text field

2018-04-22 Thread TonyM
Ste,

Yes I belive it can be extended and there are other alternatives but also 
consider creating a tiddler automaticaly open in edit mode, changing the title 
and adding and editing fields. I often use clone tiddler to this end, and are 
building and finding tools to help manage fields.

Regards
Tony

-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/fe12366b-850e-42c9-8977-f9d3e75d6f1e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Create new tiddler from template fill title an jump to text field

2018-04-22 Thread Ste Wilson
Sorry to drag this back up but I'm a bear of little brain. 

I get that this can make a new tiddler with a title entered into the presented 
field box... 

Can this be extended to ask for some more fields which get filled in in the new 
tiddler too? 

Stephen

-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/a1a8cb66-9e6e-4a15-9a9a-500a18820e6e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Create new tiddler from template fill title an jump to text field

2018-04-16 Thread Robin
I think I figgured it out

I made a template tiddler *MyTemplate*

A tiddler to store the title *MyTitle*



Tiddler Name: <$edit-text tiddler="MyTitle" tag="input" default="" class=
'tc-edit-texteditor' placeholder='Tiddler Title'/>


<$button>Make Tiddler
<$action-navigate $to={{MyTitle}}/>
<$action-setfield $tiddler='MyTemplate' $field='title' $value={{MyTitle}}/>
<$action-sendmessage $message="tm-edit-tiddler" $param={{MyTitle}}/>




Only thing left is to remove the text inside *MyTitle*


-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/bc4197a0-23be-47c2-8ec3-f61f2110e9f9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Create new tiddler from template fill title an jump to text field

2018-04-15 Thread Craig Chandler
use $action-sendmessage and tm-new-tiddler. You get access to more 
parameters.

<$button>
<$action-sendmessage $message="tm-new-tiddler" param="MyTemplate" 
title="NewTitle" />Create Tiddler


On Monday, 16 April 2018 04:36:34 UTC+9:30, Thomas Elmiger wrote:
>
> What I noticed in your second code example is that your brackets are not 
> symmetrical {{…} should be {{…}}. 
>
> The only template based new tiddler button I have created looks like this: 
>
> <$button message="tm-new-tiddler" param="TemplateTitleHere" 
> class="classname">{{$:/core/images/new-button}} 
>
> I doubt if a template can be combined with a title entered by the user ... 
> but I might be wrong. 
>
> Good luck! 
> Thomas

-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/313144cc-7ff2-4f6e-84f3-4108d59bbad2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Create new tiddler from template fill title an jump to text field

2018-04-15 Thread Thomas Elmiger
What I noticed in your second code example is that your brackets are not 
symmetrical {{…} should be {{…}}. 

The only template based new tiddler button I have created looks like this:

<$button message="tm-new-tiddler" param="TemplateTitleHere" 
class="classname">{{$:/core/images/new-button}}

I doubt if a template can be combined with a title entered by the user ... but 
I might be wrong. 

Good luck!
Thomas

-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/0d1f93e3-189d-48c4-971b-9086a620a03f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Create new tiddler from template fill title an jump to text field

2018-04-15 Thread Robin
@Thomas,

I did found that page.

But it creates a new tiddler where the title comse from the body of an 
other tiddler that u manipulate with the input field.

What I couldn't do with it was create that tiddler based on a template

I tried this (it doesnt work but maybe it explains it beter).

First I have a template tiddler $:/MyNewTiddler with a few custom fields

Then a input field 

Project Step: <$edit-text tiddler="$:/MyNewTiddler" tag="input" default="" 
> class='tc-edit-texteditor' placeholder=Project step' name'/>
>

>
That puts the custom text in the body of that tiddler
Then a button

<$button>
> <$action-createtiddler param="$:/MyNewTiddler" 
> $basetitle={{$:/MyNewTiddler} tags="projectA" text="Description of 
> materials"/>
> Add
> 
>

I know this part is wrong param="$:/MyNewTiddler but I don't know why.

@Tony

I'm sorry but for me there is still confusion between state, shadow and 
systemtiddlers.
But that is something I need to find out 

100% correct with the 

On a side note I would like a clone here button in addition to new here 
> which lets you edit the title and nominate the tiddler to clone.
>

that is the basis of what I am hoping to do.



Op zondag 15 april 2018 17:39:47 UTC+2 schreef Thomas Elmiger:
>
> Hi,
>
> Maybe this information will be helpful for you:
>
>
> https://tiddlywiki.com/#ActionCreateTiddlerWidget%20Example:%5B%5BActionCreateTiddlerWidget%20Example%5D%5D%20ActionCreateTiddlerWidget
>
> Cheers,
> Thomas 
>
>

-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/f301efd7-fa5d-4a34-a0fa-9513caaf7146%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Create new tiddler from template fill title an jump to text field

2018-04-15 Thread Thomas Elmiger
Hi,

Maybe this information will be helpful for you:

https://tiddlywiki.com/#ActionCreateTiddlerWidget%20Example:%5B%5BActionCreateTiddlerWidget%20Example%5D%5D%20ActionCreateTiddlerWidget

Cheers,
Thomas 

-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/8d34eaf0-60ac-45df-9354-25e5dc9af270%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Create new tiddler from template fill title an jump to text field

2018-04-15 Thread TonyM
I may be able to give you more tomorrow but the solutions I have seen that do 
what you want save the new tiddler name in a state tiddler, then you click on a 
button which uses multiple actions widgets to make a new tiddler with 
transcluding the state tiddler as the title, then open it for edit. I presume 
by template you mean with a default text content? If it is not to much the new 
tiddler action can specify text="text" and perhaps text={{textsourcetiddler}}.

On a side note I would like a clone here button in addition to new here which 
lets you edit the title and nominate the tiddler to clone.

To be honest I create most of my tiddlers with new, new here and clone except 
for custom tiddlers. I am keen to develop ways to copy tags and fields and or 
there values from one tiddler to the next.

Regards
Tony

-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/78660cec-8f26-4e4f-916a-1194e94612cd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Create new tiddler from template fill title an jump to text field

2018-04-15 Thread Robin


Op zondag 15 april 2018 11:28:34 UTC+2 schreef Mat:
>
> My interpretation is this:
>
> You want, somewhere in TiddlyWiki, a field where you fill in the title. 
> Next to it is a button that, when clicked, creates the tiddler from some 
> template and shows it in edit mode with the title filled in and with focus 
> on the text area.
>
> Correct?
>
> <:-)
>

Yes that is exactly what I wanted to do, with 1 more, I wanted to create 
that tiddler from a template.

The only way I found so far was to create a new tiddler from the template, 
clone that one and rename that tiddler and delete the first tiddler.
As described here 
:


The simplest way appears to be:
>
> -- enter the 'newtitle' to a temp tiddler or field, via an edit-text 
> widget (starting out with the current title)
> -- create a "Rename Tiddler" button:
>   -- creates a clone (using 'currentTiddler' as the template) with the 
> title set to value of 'newtitle' ('tm-new-tiddler')
>   -- deletes the original tiddler ($action-deletetiddler widget)
>
> To create the clone, you may find the $x-maketid widget from here 
>  more convenient to use than an 
> $action-sendmessage widget.
>


That looked to me like overdoing it.This can't be that crazy.

The only other possible sollution was with the tm-new-tiddler widget but I 
cant figure out how to use the paramObject (not much info found).

A point in the right direction would be much appriciated.



-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/9ebf6f72-e2ba-451b-a734-9647f5ebf163%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Create new tiddler from template fill title an jump to text field

2018-04-15 Thread Mat
My interpretation is this:

You want, somewhere in TiddlyWiki, a field where you fill in the title. 
Next to it is a button that, when clicked, creates the tiddler from some 
template and shows it in edit mode with the title filled in and with focus 
on the text area.

Correct?

<:-)
>
>

-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/121a26df-a1ff-4f74-9c1c-d695024177d9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Create new tiddler from template fill title an jump to text field

2018-04-14 Thread Stephan Hradek
I do not fully understand your exampl.

Can you give full tiddlers so that we can recreate and test it on 
tiddlywiki.com?

-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/7da18d7c-4d74-4295-a7a5-a480058815b6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.