[tw5] Re: Documentation required on Hashmaps or clone to specific tiddler title

2018-05-23 Thread 'Mark S.' via TiddlyWiki
Hi PMario, On Wednesday, May 23, 2018 at 2:17:23 AM UTC-7, PMario wrote: > > > > Since v5.1.12 using actions inside button widgets should be deprecated. .. > It actually is mentioned in the docs > : but it's easy to miss. > > There's 3 paragraphs between

[tw5] Re: Documentation required on Hashmaps or clone to specific tiddler title

2018-05-23 Thread PMario
On Wednesday, May 23, 2018 at 2:27:48 PM UTC+2, TonyM wrote: > > It occurs to me that seeing the two ways to specify actions do not differ > much except that one forms a logicaly contiguos piece of code and the other > a fragmented approach (the recomended method). That's right they are very

[tw5] Re: Documentation required on Hashmaps or clone to specific tiddler title

2018-05-23 Thread PMario
On Wednesday, May 23, 2018 at 2:27:48 PM UTC+2, TonyM wrote: ... > All I need to workout is how to permit feeding variables into these action > widget macros, since we only name them in triggering widgets. > > Not withstanding above can you tell me where to find out about hashmaps? > You are

[tw5] Re: Documentation required on Hashmaps or clone to specific tiddler title

2018-05-23 Thread TonyM
Mario, Thanks for the background. It occurs to me that seeing the two ways to specify actions do not differ much except that one forms a logicaly contiguos piece of code and the other a fragmented approach (the recomended method). I can see why users go for the depricated method. There may

[tw5] Re: Documentation required on Hashmaps or clone to specific tiddler title

2018-05-23 Thread PMario
Hi folks, I think the core misses some functions to handle this use-case in a sensible way! ... -> *You should create a new issue at github*! I think the biggest problem here is: *Evolution over time* and functional inconsistencies in the exsisting core code. ... eg: Not every widget can

[tw5] Re: Documentation required on Hashmaps or clone to specific tiddler title

2018-05-22 Thread TonyM
Mario, As mark says the documentation promises a way to create tiddlers with a new title via a hash map but does not provide the information nessasary to do so in context, that of a widget in wikitext. Regards Tony -- You received this message because you are subscribed to the Google Groups

[tw5] Re: Documentation required on Hashmaps or clone to specific tiddler title

2018-05-22 Thread 'Mark S.' via TiddlyWiki
Hi Tony, Here's code that will clone a tiddler without forcing an edit: \define registered-tiddler() My New Tiddler \define wiki-tiddler() HelloThere \define fieldvalue() <$text text={{!!$(field)$}}/> <$button> <$action-createtiddler $basetitle=<> $savetitle= "$:/temp/mytitle" /> <$tiddler

[tw5] Re: Documentation required on Hashmaps or clone to specific tiddler title

2018-05-22 Thread 'Mark S.' via TiddlyWiki
What he (me too!) want is to know how to create and pass a hashmap along with widget messages, from the TW user's perspective. If the documentation is only good for javascript programming, then it should be labeled as such so that it doesn't create confusion. Since 99.99% of TiddlyWiki.com is

[tw5] Re: Documentation required on Hashmaps or clone to specific tiddler title

2018-05-22 Thread PMario
On Tuesday, May 22, 2018 at 3:48:04 AM UTC+2, TonyM wrote: > > Folks, > Using https://tiddlywiki.com/#WidgetMessage%3A%20tm-new-tiddler and other > widgetMessages there is a repeated reference to "Optional hashmap of > additional tiddler fields". > > I have looked and I can not find an

[tw5] Re: Documentation required on Hashmaps or clone to specific tiddler title

2018-05-21 Thread 'Mark S.' via TiddlyWiki
This example is different from mine. Note that I used the action-sendmessage widget. The parameters might be different when sending the message from the button. -- Mark On Monday, May 21, 2018 at 8:46:58 PM UTC-7, TonyM wrote: > > Mark, > > Not for me > > \define wiki-tiddler-title() >

[tw5] Re: Documentation required on Hashmaps or clone to specific tiddler title

2018-05-21 Thread TonyM
Folks, I seems there is a problem here I cant easily solve unless I have documentation I cant find on Hashmaps as per If a hashmap was used and a title field was specified, use that title in https://tiddlywiki.com/#WidgetMessage%3A%20tm-new-tiddler Regards Tony On Tuesday, May 22, 2018 at

[tw5] Re: Documentation required on Hashmaps or clone to specific tiddler title

2018-05-21 Thread TonyM
Mark, Thanks for you help. Perhaps I understood subconsciously that I would be forced to use the ActionCreatetiddler with all the problems of the field cloning. I may look at the message and widget to see if I can make a new one that does what I want? This should not be so difficult.

[tw5] Re: Documentation required on Hashmaps or clone to specific tiddler title

2018-05-21 Thread 'Mark S.' via TiddlyWiki
Method #2 should create a clone, including any fields and text. If it doesn't, make sure sure that your <> macro is returning the value you think it is. My guess is that the macro is accidentally returning an empty value. The example worked for me in testing, cloning all fields. The

[tw5] Re: Documentation required on Hashmaps or clone to specific tiddler title

2018-05-21 Thread TonyM
Mark, Not for me \define wiki-tiddler-title() $:/PSaT/wikimanager/{{$:/PSaT/wikimanager/wiki-title}} \define wiki-tiddler() $:/PSaT/wikimanager/wiki-tiddler \define registered-wiki-tiddler() $:/PSaT/wikimanager/wikis/{{$:/PSaT/wikimanager/wiki-title}} <$button message="tm-new-tiddler"

[tw5] Re: Documentation required on Hashmaps or clone to specific tiddler title

2018-05-21 Thread TonyM
My Previous example <$button message="tm-new-tiddler" *param*=<> title=< > tooltip="C"> 1. Create Wiki instance tiddler (clone) Creates a new tiddler called "<> 1" with the same tags and field content, I want this tiddler named <> As an aside it opens the tiddler for edit, which I do not need.

[tw5] Re: Documentation required on Hashmaps or clone to specific tiddler title

2018-05-21 Thread 'Mark S.' via TiddlyWiki
In the example I gave, everything in the tiddler specified by $param is cloned, unless you choose to overwrite one or more the fields with your own specification. -- Mark On Monday, May 21, 2018 at 8:33:44 PM UTC-7, TonyM wrote: > > Mark, > > This looks promising however I do not want to

[tw5] Re: Documentation required on Hashmaps or clone to specific tiddler title

2018-05-21 Thread TonyM
Mark, This looks promising however I do not want to specify the fields and tags, I want them to come across with the cloning process. I can add (or remove) tags and fields at the same time (I only need additional actions for this), but the tiddler I am cloning may have a lot already on it

[tw5] Re: Documentation required on Hashmaps or clone to specific tiddler title

2018-05-21 Thread 'Mark S.' via TiddlyWiki
I've always wondered about this. One thing I found, when I offered to fix the documentation re 'param' vs '$param' (https://github.com/Jermolene/TiddlyWiki5/pull/2964), is that apparently some of the existing documentation is developer-facing rather than user-facing. Anyway, you can