[tw5] Re: Delete a field on a newly "cloned" tiddler

2018-08-12 Thread TonyM
Folks, Because it related to work here I will share this with you first. Publish later. The attached json bundle contains the "new from template tiddler" tools. On installation you will get a "new" sidebar tab that will lead you to all the information you need. This is not a plugin so no

[tw5] Re: Delete a field on a newly "cloned" tiddler

2018-08-11 Thread TonyM
Folks, With thanks to all and in this case mostly Mark S. My working solution is as follows \define fieldname-value() <$text text="""$(fieldname-value-temp)$"""/> \define fieldsvalues() <$list filter="[all[current]fields[]] -[[tiddler-template-caption]] -[[text]] -[[title]] -[[created]]

[tw5] Re: Delete a field on a newly "cloned" tiddler

2018-08-11 Thread TonyM
Frd, Thanks for that. I can use Marks answer for this issue, but your utility will most likely assist in some of the advanced solutions I suggest in my reply to Marks last comment. Generate NewTitle sounds like something that should be more available to tiddlywiki users. Lovely Regards Tony

[tw5] Re: Delete a field on a newly "cloned" tiddler

2018-08-11 Thread TonyM
Mark, Great work, I had a hunch it could be done, and you got there 1st, "good on ya". It is quite elegant, and I will re-engineer it for a global macro and named templates. Thanks very much. I will keep it in my own repository and when I get around to building a community website, I will

[tw5] Re: Delete a field on a newly "cloned" tiddler

2018-08-11 Thread 'Mark S.' via TiddlyWiki
This code is deceptively short, but it appears to do what you want: \define catvalue() <$text text="""$(value2)$"""/> \define fieldsvalues() <$list filter="[all[current]fields[]] -[[tiddler-template-caption]] -[[text]]" variable="field"><$set name="value2" tiddler=<> field=<>

[tw5] Re: Delete a field on a newly "cloned" tiddler

2018-08-11 Thread TonyM
Thanks Frd, I will try it on sunday morning in around 10 to 11 hours. I appreciate your help. I must remember to document the final solution well because have wasted too much time on this even although I have learned some new things. Regards Tony -- You received this message because you are

[tw5] Re: Delete a field on a newly "cloned" tiddler

2018-08-11 Thread FrD
Hi TonyM, There is a function in the core that generates a new title based on a given title (from task, it generates task 1, task 2, ...). I've wrapped it in a js macro. You could try it. Import save and reload (in a test wiki or in a copy of your wiki !!!) Just enter <> or <> Be careful with

[tw5] Re: Delete a field on a newly "cloned" tiddler

2018-08-11 Thread TonyM
Frd, Thanks for your effort. Unfortunately I do not know the name before hand as I am cloning to create multiple instances of say tasks. They may be renamed or named task 1 task 2 etc... This is a messy part of the available code. So I am currentlt working on a copy selected fields to a new

[tw5] Re: Delete a field on a newly "cloned" tiddler

2018-08-11 Thread FrD
Hi TonyM, Finally I found a way to do what you want. The drawback is that you need to know in advance the name of the tiddler you want to create. Go to https://tiddlywiki.com/ Create a tiddler, for instance "testtemplate" with a tag ("MyTag"), some text and two fields : field1 and field2.

[tw5] Re: Delete a field on a newly "cloned" tiddler

2018-08-11 Thread TonyM
Mark, Just to clarify, the "idea of [your] own and FrD's suggestion" just did not work? I was relay smart because I decided to use a subtiddler such as task/template to indicate it was a template tiddler so task no longer held the removeme field and would not be cloned. This is a good idea

[tw5] Re: Delete a field on a newly "cloned" tiddler

2018-08-04 Thread TonyM
Welcome -- 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.

[tw5] Re: Delete a field on a newly "cloned" tiddler

2018-08-04 Thread FrD
H Tony, I see. thanks for your explanation. Regards. FrD Le samedi 4 août 2018 10:34:20 UTC+2, TonyM a écrit : > > Frd > > I am using sub to suggest subordinate. Using the /template name after the > tiddlername. > > Tiddlername (actual template) > Tiddlername/template existing means

[tw5] Re: Delete a field on a newly "cloned" tiddler

2018-08-04 Thread TonyM
Frd I am using sub to suggest subordinate. Using the /template name after the tiddlername. Tiddlername (actual template) Tiddlername/template existing means tiddlername is a template. Thus every tiddler with suffix[/template] says there is a template tiddler called removesuffix[/template]

[tw5] Re: Delete a field on a newly "cloned" tiddler

2018-08-04 Thread FrD
Hi Tony, Could you elaborate a bit about your solution and the use of a "subtiddler" ? This word seems to relate only to plugin tiddlers on https://tiddlywiki.com/. But I think you give it another meaning here and use it for something else. Regards FrD Le samedi 4 août 2018 05:33:30 UTC+2,

[tw5] Re: Delete a field on a newly "cloned" tiddler

2018-08-03 Thread TonyM
Mark, As I posted I am happy to use the existence of a /template subtiddler because I can simply use a custom clone button. In fact I can see being able store additional info about the template or even listing the resulting tiddlers. However I have thought of allowing check boxes on each field

[tw5] Re: Delete a field on a newly "cloned" tiddler

2018-08-03 Thread 'Mark S.' via TiddlyWiki
I've tried an idea of my own and FrD's suggestion. The problem is, that once the tm-new-tiddler message is sent the current macro stops. So you can't do any clean-up back in the original macro. Here's the code I tried using FrD's approach. The last setfield never gets run, even though it's

[tw5] Re: Delete a field on a newly "cloned" tiddler

2018-08-03 Thread TonyM
Frd Thanks, I have used the work around to indicate template tiddlers by creating a matching tiddler templatename/template In someways this may be better because the templatetiddler is now totaly cloned. Regards Tony -- You received this message because you are subscribed to the Google

[tw5] Re: Delete a field on a newly "cloned" tiddler

2018-08-03 Thread FrD
Hi, I've not written the code so it's not tested. Perhaps the list of actions when you click the button could be : - Remove the field from the template tiddler, - clone the template tiddler - add back the field to the template tiddler. Regards FrD Le vendredi 3 août 2018 04:46:30 UTC+2,

[tw5] Re: Delete a field on a newly "cloned" tiddler

2018-08-02 Thread TonyM
Folks, It would be good to answer this, especially if it was a "clean" and uncomplicated solution, however I have decided to flag template tiddlers using a method that does not get cloned ie no field, text or tag. In this case I am creating a subtiddler currenttiddler/template to indicate