[tw5] Re: In TiddlyWiki (5) my macro works in tiddlers, except when appearing as sidebar

2019-03-31 Thread icqol . secretary

Thanks!!! That's what I needed to know!!

On Sunday, March 31, 2019 at 8:44:15 AM UTC+9, TonyM wrote:
>
>  tiddlers in the sidebar do not have the current tiddler set.
>

-- 
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/785ff8fd-73a1-4d50-afa5-7e5c4f7a53a0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: refer to recently created tiddler when creating a bunch of tiddlers tagged with the name of that tiddler and whose name are the name of the tiddler with various words appended, or something

2019-03-22 Thread icqol . secretary
Per forum instructions...original post resolved/updated.

On Friday, March 22, 2019 at 7:43:54 AM UTC+9, icqol.s...@gmail.com wrote:
>
> [ 2019 03 23 UPDATE]
>
> I have found a macro tidexist that I can use to test to see if the 
> original tiddler exists, and if not suggest entering a new name instead.
>
> This approach renders the original question moot. The final result is 
> posted at very bottom for future reference.
> --
> [ORIGINAL POST]
>
> I am creating a button that will create a tiddler and a bunch of tiddlers 
> tagged with the name of that tiddler and whose name are the name of the 
> tiddler with various words appended. 
>
> for example, "Tiddler one" and "Tiddler one - Category one" , with tag: 
> "Tiddler one"
>
> The problem I have is that in this line
> <$action-createtiddler $basetitle={{$:/state/new-button-caption}} 
> tags="Workshop createdByButton" 
> text={{$:/plugins/reidgould/dpbd/templates/view/Board}} focus=yes /
>
> I create the tiddler, but if a tiddler with that name, Say "Tiddler One" 
> exists, the actual name of the tiddler with not be 'Tiddler One' but 
> 'Tiddler One 1" (or 2 or 3, if prior ones exist...). This is alright as far 
> as it stands, but now the tags, which are based on  
> "{{$:/state/new-button-caption}}" 
> will not have the additional number, will all be to the original tiddler, 
> not the newly created tiddler. 
>
> I also had ot use the strange tagme tagx scheme in order to get tiddler 
> names with spaces into the tag, otherwise the name became several tags (for 
> example, if I used "tags={{$:/state/new-button-caption}}" directly). 
> There may be a better way to do this???
>
> Is there any way to fix this? I think I have to update
> <$set name=tagx value={{$:/state/new-button-caption}} >
> somehow...but how to identify the correct value, i.e. the exact name of 
> the tiddler I just created?
>
> P.S. I cribbed most of the code from other places, and it is well likely 
> that there is a better approach for this or other aspects of it...Thanks in 
> advance.
>
> [OLD CODE, see below for corrected]
> \define songs() {{$:/state/new-button-caption}} - Songs
> \define games() {{$:/state/new-button-caption}} - Games
> \define art() {{$:/state/new-button-caption}} - Art
> \define intro() {{$:/state/new-button-caption}} - Intro
> \define books() {{$:/state/new-button-caption}} - Books
> \define tagme() [[$(tagx)$]]
> \define concat(text,1,2,3,4,5,6,7,8,9,10) $text$
> \define myTags(title) <>
> ---
> <>
> ---
> <>
> ---
>
> <$set name=tagx value={{$:/state/new-button-caption}} >
>
>  Title: <$edit-text tiddler="$:/state/new-button-caption" tag="input" 
> default=""/>
> 
> Button below will create a Workshop with the following names and tags:
>
> * {{$:/state/new-button-caption}} tags: Workshop, createdByButton 
> * <> TAGS: "<>"
> * <> TAGS:  "<>"
> * <> TAGS:  "<>"
> * <> TAGS:  "<>"
> * <> TAGS:  "<>"
>
>
> 
> <>
> 
>
> <$wikify name="songs" text=<> >
> <$wikify name="games" text=<> >
> <$wikify name="art" text=<> >
> <$wikify name="intro" text=<> >
> <$wikify name="books" text=<> >
> <$button>
>
> <$action-createtiddler $basetitle={{$:/state/new-button-caption}} 
> tags="Workshop createdByButton" 
> text={{$:/plugins/reidgould/dpbd/templates/view/Board}} focus=yes />
>
>
> <$action-createtiddler $basetitle=<> tags=<> text="Homemade 
> Button" focus=yes />
> New Tiddler
> 
> 
> 
> 
> 
> 
>
> 
>
>
>
> [UPDATED CODE as mentioned in preamble]
> \define songs() {{$:/state/new-button-caption}} - Songs
> \define games() {{$:/state/new-button-caption}} - Games
> \define art() {{$:/state/new-button-caption}} - Art
> \define intro() {{$:/state/new-button-caption}} - Intro
> \define books() {{$:/state/new-button-caption}} - Books
> \define tagme() [[$(tagx)$]]
> \define nontidexist(tiddler)
> 
>
> * Workshop  <>   does NOT exist. You are 
> GOOD TO GO, Houston!
> 
> 
>
> This 
> <$wikify name="songs" text=<> >
> <$wikify name="games" text=<> >
> <$wikify name="art" text=<> >
> <$wikify name="intro" text=<> >
> <$wikify name="books" text=<> >
> <$button>
> <$action-createtiddler $basetitle={{$:/state/new-button-caption}} 
> tags="Workshop createdByButton Board" 
> text={{$:/plugins/reidgould/dpbd/templates/view/Board}} focus=yes />
>
> <$set name=tagx value={{$:/state/new-button-caption}} >
> <$action-createtiddler $basetitle=<> tags=<> text="Homemade 
> Button" focus=yes />
> <$action-createtiddler $basetitle=<> tags=<> text="Homemade 
> Button" focus=yes />
> <$action-createtiddler $basetitle=<> tags=<> text="Homemade 
> Button" focus=yes />
> <$action-createtiddler $basetitle=<> tags=<> text="Homemade 
> Button" focus=yes />
> <$action-createtiddler $basetitle=<> tags=<> text="Homemade 
> Button" focus=yes />
> 
> <>
> 
> 
> 
> 
> 
> 
>
>  button will create a Workshop with the following names and tags:
> 
> * {{$:/state/new-button-caption}} TAGS: <> < createdByButton>> <>
> 
> * <> TAGS: {{$(tagx)$||$:/core/ui/TagTemplate}}
> 
> * <> TAGS: 

[tw5] refer to recently created tiddler when creating a bunch of tiddlers tagged with the name of that tiddler and whose name are the name of the tiddler with various words appended, or something like

2019-03-21 Thread icqol . secretary
I am creating a button that will create a tiddler and a bunch of tiddlers 
tagged with the name of that tiddler and whose name are the name of the 
tiddler with various words appended. 

for example, "Tiddler one" and "Tiddler one - Category one" , with tag: 
"Tiddler one"

The problem I have is that in this line
<$action-createtiddler $basetitle={{$:/state/new-button-caption}} 
tags="Workshop createdByButton" 
text={{$:/plugins/reidgould/dpbd/templates/view/Board}} focus=yes /

I create the tiddler, but if a tiddler with that name, Say "Tiddler One" 
exists, the actual name of the tiddler with not be 'Tiddler One' but 
'Tiddler One 1" (or 2 or 3, if prior ones exist...). This is alright as far 
as it stands, but now the tags, which are based on  
"{{$:/state/new-button-caption}}" 
will not have the additional number, will all be to the original tiddler, 
not the newly created tiddler. 

I also had ot use the strange tagme tagx scheme in order to get tiddler 
names with spaces into the tag, otherwise the name became several tags (for 
example, if I used "tags={{$:/state/new-button-caption}}" directly). There 
may be a better way to do this???

Is there any way to fix this? I think I have to update
<$set name=tagx value={{$:/state/new-button-caption}} >
somehow...but how to identify the correct value, i.e. the exact name of the 
tiddler I just created?

P.S. I cribbed most of the code from other places, and it is well likely 
that there is a better approach for this or other aspects of it...Thanks in 
advance.


\define songs() {{$:/state/new-button-caption}} - Songs
\define games() {{$:/state/new-button-caption}} - Games
\define art() {{$:/state/new-button-caption}} - Art
\define intro() {{$:/state/new-button-caption}} - Intro
\define books() {{$:/state/new-button-caption}} - Books
\define tagme() [[$(tagx)$]]

<$set name=tagx value={{$:/state/new-button-caption}} >

 Title: <$edit-text tiddler="$:/state/new-button-caption" tag="input" 
default=""/>

Button below will create a Workshop with the following names and tags:

* {{$:/state/new-button-caption}} tags: Workshop, createdByButton 
* <> TAGS: "<>"
* <> TAGS:  "<>"
* <> TAGS:  "<>"
* <> TAGS:  "<>"
* <> TAGS:  "<>"


<$wikify name="songs" text=<> >
<$wikify name="games" text=<> >
<$wikify name="art" text=<> >
<$wikify name="intro" text=<> >
<$wikify name="books" text=<> >
<$button>

<$action-createtiddler $basetitle={{$:/state/new-button-caption}} 
tags="Workshop createdByButton" 
text={{$:/plugins/reidgould/dpbd/templates/view/Board}} focus=yes />

<$set name=tagx value={{$:/state/new-button-caption}} >
<$action-createtiddler $basetitle=<> tags=<> text="Homemade 
Button" focus=yes />
<$action-createtiddler $basetitle=<> tags=<> text="Homemade 
Button" focus=yes />
<$action-createtiddler $basetitle=<> tags=<> text="Homemade 
Button" focus=yes />
<$action-createtiddler $basetitle=<> tags=<> text="Homemade 
Button" focus=yes />
<$action-createtiddler $basetitle=<> tags=<> text="Homemade 
Button" focus=yes />


New Tiddler









-- 
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/989fc0e6-2f20-4798-9374-8185cfb3d36d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Dropboard templates

2019-03-18 Thread icqol . secretary
I am starting to use the Dropboard plugin by Reid Gould 
https://reidgould.github.io/tiddlywiki-dropboard/ but I would like to 
modify it a bit, so that instead of getting a new blank board when I press 
the button, I get a new board that is already populated with a few 
tiddlers. For example, if I were using this for a workshop, if I click on 
the new board button I would already have three main tiddlers (Intro, Main, 
Closing (hopefully uniquely named with the date, say)) set up, which I 
could then include tiddlers within. 

I tried to create my own button, and modified the code 

<$button tooltip="New Board" class=<>>
<$action-sendmessage $message="tm-new-tiddler" title=<> tags="" text="""<$transclude 
tiddler="$:/plugins/reidgould/dpbd/templates/view/Board" mode="inline" 
/>""" />
<$list filter="[prefix[yes]]">
{{$:/plugins/reidgould/dpbd/images/Dropboard}}

<$list filter="[prefix[yes]]">
New Board



by changing 
 
$:/plugins/reidgould/dpbd/templates/view/Board

to 
$:/plugins/reidgould/dpbd/templates/view/NewWorkshop

(after creating this tiddler by cloning the one above)
and changing the tooltip/text references to New Workshop.

I was able to verify the new button was using the cloned tiddler. Changes 
to the NewWorkshop template tiddler in edit more were reflected in the 
button-created tiddler, but if I populated my cloned template 
($:/plugins/reidgould/dpbd/templates/view/NewWorkshop) 
tiddler with tiddlers, these never showed up when I clicked the button. The 
new boards were always blank, and what they looked like in edit mode was 
different than what they looked like in view mode. Something must be going 
on behind the scenes, or I am not going about this the right way...

If by any chance anyone has a clue, I would be grateful.

Thanks in advance..

DC

-- 
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/9b026a38-4c24-4fa0-9578-4538b0f9c781%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.