[tw5] Re: Creating Tiddler from Template but just the body

2023-02-16 Thread Eric Shulman
Instead of use the `$param` parameter, you can set the `text` field content 
in the same way you are setting the content of the `title` and `tags` 
fields.  Something like this should do:
```
<$action-sendmessage $message="tm-new-tiddler" title=<> 
text={{000template}} tags=<>/>
```
Note how the `text=...` param is using transclusion to get its value from 
the "000template" tiddler.

enjoy,
-e
On Thursday, February 16, 2023 at 9:24:13 AM UTC-8 jkr...@gfai.de wrote:

> Hey,
>
> I have a button in my sidebar to create a new Tiddler witch works well for 
> the most part. I now use a template for the new tiddler to already have 
> some text in the body, which also works well. My only problem is, that the 
> tag is also taken from the template and I cant find a way to get rid of it. 
> Can i specify, which fields to take from the template? or is there a way to 
> remove a tag or change tags to just the one I want?
>
> Cheers. My code so far:
>
> <$button class="tc-btn-invisible" title="Add Today Tiddler">
><$list filter="[match[yes]]">
>   {{$:/core/images/new-journal-button}}
>
><$list filter="[match[yes]]">
>   <$text text="Add Today"/>
>
><$action-sendmessage $message="tm-new-tiddler" $param="000template" 
>  title=<>  tags=<>/>
> 
>
> PS: Sorry, don't know how to use labels.
>

-- 
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/96e48b48-334b-4518-8269-312738f7c43cn%40googlegroups.com.


[tw5] Creating Tiddler from Template but just the body

2023-02-16 Thread Jacob Krause
Hey,

I have a button in my sidebar to create a new Tiddler witch works well for 
the most part. I now use a template for the new tiddler to already have 
some text in the body, which also works well. My only problem is, that the 
tag is also taken from the template and I cant find a way to get rid of it. 
Can i specify, which fields to take from the template? or is there a way to 
remove a tag or change tags to just the one I want?

Cheers. My code so far:

<$button class="tc-btn-invisible" title="Add Today Tiddler">
   <$list filter="[match[yes]]">
  {{$:/core/images/new-journal-button}}
   
   <$list filter="[match[yes]]">
  <$text text="Add Today"/>
   
   <$action-sendmessage $message="tm-new-tiddler" $param="000template" 
 title=<>  tags=<>/>


PS: Sorry, don't know how to use labels.

-- 
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/9a0feb19-71c5-4fc4-9d86-ff9507850338n%40googlegroups.com.