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 reloa
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]] -[[modi
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
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 put
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=<> emptyValue=""><>="<
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
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
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 ti
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.
Creat
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 but
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.
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 tiddlernam
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]
Whe
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, T
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
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 sim
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 Group
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, 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
temp
19 matches
Mail list logo