[tw5] Re: Footnote Plugin (TW5)

2023-09-24 Thread yasai ya
It's very helpful, thanks.

I found the popup appears in wrong place used in a table. And I made small 
change, added "popupAbsCoords="yes"".
reference: https://tiddlywiki.com/static/Coordinate%2520Systems.html
\define ref(label) <$button popup="$:/state/$label$" *popupAbsCoords="yes"* 
class="tc-btn-invisible tc-slider">$label$ \end

2015年3月5日木曜日 20:35:04 UTC+9 Danielo Rodríguez:

> Sometimes there is no need to re create the weel.
>
> Please have a look at : http://braintest.tiddlyspot.com/#PopupFootnotes
>

-- 
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/eb97e7c9-d727-46af-9571-9dba0d48bca4n%40googlegroups.com.


[tw5] Re: copy button in each code block

2023-06-06 Thread yasai ya
Updated.

```
\define code(tx)

 table.mycodeblock {
 border:   none;
 margin:   0px;
 vertical-align: middle;
 display: inline-table;
 }
 table.mycodeblock pre {
 margin:   0px;
 }
 table.mycodeblock td {
 border:   none;
 padding:  0.1em;
 position: relative;
 }
 table.mycodeblock button {
 position: absolute;
 left: -30px;
 top:  12px;
 }
 table.mycodeblock button svg.tc-image-button {
 height:   2em;
 width:2em;
 fill: none;
 }
 table.mycodeblock:hover button svg.tc-image-button {
 fill: <<color tiddler-controls-foreground>>;
 animation: 0.30s cubic-bezier(.35, 0, .35, 1) 2 alternate;
 animation-name: breathe,blink;
 }
 table.mycodeblock button:hover svg.tc-image-button {
 fill: <<color orange>>;
 }
 @keyframes blink {
 from { opacity: 1; }
 to   { opacity: .35; }
 }
 @keyframes breathe {
 from { transform: scale(1); }
 to   { transform: scale(1.5); }
 }


<$wikify name="tx_copy" text={{{ 
[<__tx__>trim[]]+[addprefix[]]+[addsuffix[]] }}}>
<$set name="tx_show" value={{{ 
[]+[addprefix[]]+[addprefix]+[addsuffix[]]+[addsuffix] }}}>



<>


<$button class="tc-btn-invisible" 
message="tm-copy-to-clipboard" param=<> 
tooltip={{$:/language/Buttons/CopyToClipboard/Hint}}>{{$:/core/images/copy-clipboard}}

    




\end
```
2023年2月27日月曜日 19:00:01 UTC+9 yasai ya:

> Sorry, it wasn't fixed at all, but finally I fixed the problem.
>
> param=<<__tx__>>
> ↓
> param={{{ [<__tx__>trim[]] }}}
>
>
>
> Full code
> ---
>
>
> \define code(tx)
>
> 
> table.mycodeblock {
>   border:   none;
>   margin:   7px 0 11px;
> }
> table.mycodeblock pre {
>   margin:   0;
> }
> table.mycodeblock td {
>   border:   none;
>   padding:  0;
>   position: relative;
> }
> table.mycodeblock button {
>   position: absolute;
>   left: -30px;
>   top:  2px;
> }
> table.mycodeblock button svg.tc-image-button {
>   height:   2em;
>   width:2em;
>   fill: none;
> }
> table.mycodeblock:hover button svg.tc-image-button {
>   fill: <<color tiddler-controls-foreground>>;
>   animation: 0.35s cubic-bezier(.35, 0, .35, 1) 2 alternate;
>   animation-name: breathe,blink;
> }
> table.mycodeblock button:hover svg.tc-image-button {
>   fill: <<color orange>>;
> }
> @keyframes blink {
>   from { opacity: 1; }
>   to   { opacity: .35; }
> }
> @keyframes breathe {
>   from { transform: scale(1); }
>   to   { transform: scale(1.5); }
> }
> 
> 
>
>
> ```$tx$
> ```
>
> <$button class="tc-btn-invisible" message="tm-copy-to-clipboard" 
> param={{{ [<__tx__>trim[]] }}} 
> tooltip={{$:/language/Buttons/CopyToClipboard/Hint}}>{{$:/core/images/copy-clipboard}}
> \end
> 2023年2月24日金曜日 13:47:50 UTC+9 yasai ya:
>
>> Thank you!
>> Your post was very helpful.
>>
>> But it looked like the CSS wouldn't apply without the macro tiddler was 
>> visible.
>>
>> So I modified it like this.
>>
>> ```
>> \define code(tx)
>>
>> 
>> table.mycodeblock {
>>   border:   none;
>>   margin:   7px 0 11px;
>> }
>> table.mycodeblock pre {
>>   margin:   0;
>> }
>> table.mycodeblock td {
>>   border:   none;
>>   padding:  0;
>>   position: relative;
>> }
>> table.mycodeblock button {
>>   position: absolute;
>>   left: -30px;
>>   top:  2px;
>> }
>> table.mycodeblock button svg.tc-image-button {
>>   height:   2em;
>>   width:2em;
>>   fill: none;
>> }
>> table.mycodeblock:hover button svg.tc-image-button {
>>   fill: <<color tiddler-controls-foreground>>;
>>   animation: 0.35s cubic-bezier(.35, 0, .35, 1) 2 alternate;
>>   animation-name: breathe,blink;
>> }
>> table.mycodeblock button:hover svg.tc-image-button {
>>   fill: <<color orange>>;
>> }
>> @keyframes blink {
>>   from { opacity: 1; }
>>   to   { opacity: .35; }
>> }
>> @keyframes breathe {
>>   from { transform: scale(1); }
>>   to   { transform: scale(1.5); }
>> }
>> 
>> 
>>
>> ```$tx$
>> ```
>> <$button class="tc-btn-invisible" message="tm-copy-to-clipboard" 
>> param=<<__tx__>> 
>> tooltip={{$:/language/Buttons/CopyToClipboard/Hint}}>{{$:/core/images/copy-clipboard}}
>> \end

[tw5] Re: copy button in each code block

2023-06-06 Thread yasai ya
Updated.
\define code(tx)  table.mycodeblock { border: none; margin: 0px; 
vertical-align: middle; display: inline-table; } table.mycodeblock pre { 
margin: 0px; } table.mycodeblock td { border: none; padding: 0.1em; 
position: relative; } table.mycodeblock button { position: absolute; left: 
-30px; top: 12px; } table.mycodeblock button svg.tc-image-button { height: 
2em; width: 2em; fill: none; } table.mycodeblock:hover button 
svg.tc-image-button { fill: <<color tiddler-controls-foreground>>; 
animation: 0.30s cubic-bezier(.35, 0, .35, 1) 2 alternate; animation-name: 
breathe,blink; } table.mycodeblock button:hover svg.tc-image-button { fill: 
<<color orange>>; } @keyframes blink { from { opacity: 1; } to { opacity: 
.35; } } @keyframes breathe { from { transform: scale(1); } to { transform: 
scale(1.5); } }  <$wikify name="tx_copy" text={{{ 
[<__tx__>trim[]]+[addprefix[]]+[addsuffix[]] }}}> <$set 
name="tx_show" value={{{ []+[addprefix[]]+[addprefix]+[addsuffix[]]+[addsuffix] }}}><>   <$button 
class="tc-btn-invisible" message="tm-copy-to-clipboard" param=<> 
tooltip={{$:/language/Buttons/CopyToClipboard/Hint}}>{{$:/core/images/copy-clipboard}}
 
  \end
2023年2月27日月曜日 19:00:01 UTC+9 yasai ya:

> Sorry, it wasn't fixed at all, but finally I fixed the problem.
>
> param=<<__tx__>>
> ↓
> param={{{ [<__tx__>trim[]] }}}
>
>
>
> Full code
> ---
>
>
> \define code(tx)
>
> 
> table.mycodeblock {
>   border:   none;
>   margin:   7px 0 11px;
> }
> table.mycodeblock pre {
>   margin:   0;
> }
> table.mycodeblock td {
>   border:   none;
>   padding:  0;
>   position: relative;
> }
> table.mycodeblock button {
>   position: absolute;
>   left: -30px;
>   top:  2px;
> }
> table.mycodeblock button svg.tc-image-button {
>   height:   2em;
>   width:2em;
>   fill: none;
> }
> table.mycodeblock:hover button svg.tc-image-button {
>   fill: <<color tiddler-controls-foreground>>;
>   animation: 0.35s cubic-bezier(.35, 0, .35, 1) 2 alternate;
>   animation-name: breathe,blink;
> }
> table.mycodeblock button:hover svg.tc-image-button {
>   fill: <<color orange>>;
> }
> @keyframes blink {
>   from { opacity: 1; }
>   to   { opacity: .35; }
> }
> @keyframes breathe {
>   from { transform: scale(1); }
>   to   { transform: scale(1.5); }
> }
> 
> 
>
>
> ```$tx$
> ```
>
> <$button class="tc-btn-invisible" message="tm-copy-to-clipboard" 
> param={{{ [<__tx__>trim[]] }}} 
> tooltip={{$:/language/Buttons/CopyToClipboard/Hint}}>{{$:/core/images/copy-clipboard}}
> \end
> 2023年2月24日金曜日 13:47:50 UTC+9 yasai ya:
>
>> Thank you!
>> Your post was very helpful.
>>
>> But it looked like the CSS wouldn't apply without the macro tiddler was 
>> visible.
>>
>> So I modified it like this.
>>
>> ```
>> \define code(tx)
>>
>> 
>> table.mycodeblock {
>>   border:   none;
>>   margin:   7px 0 11px;
>> }
>> table.mycodeblock pre {
>>   margin:   0;
>> }
>> table.mycodeblock td {
>>   border:   none;
>>   padding:  0;
>>   position: relative;
>> }
>> table.mycodeblock button {
>>   position: absolute;
>>   left: -30px;
>>   top:  2px;
>> }
>> table.mycodeblock button svg.tc-image-button {
>>   height:   2em;
>>   width:2em;
>>   fill: none;
>> }
>> table.mycodeblock:hover button svg.tc-image-button {
>>   fill: <<color tiddler-controls-foreground>>;
>>   animation: 0.35s cubic-bezier(.35, 0, .35, 1) 2 alternate;
>>   animation-name: breathe,blink;
>> }
>> table.mycodeblock button:hover svg.tc-image-button {
>>   fill: <<color orange>>;
>> }
>> @keyframes blink {
>>   from { opacity: 1; }
>>   to   { opacity: .35; }
>> }
>> @keyframes breathe {
>>   from { transform: scale(1); }
>>   to   { transform: scale(1.5); }
>> }
>> 
>> 
>>
>> ```$tx$
>> ```
>> <$button class="tc-btn-invisible" message="tm-copy-to-clipboard" 
>> param=<<__tx__>> 
>> tooltip={{$:/language/Buttons/CopyToClipboard/Hint}}>{{$:/core/images/copy-clipboard}}
>> \end
>> ```
>>
>> I'm newbie to HTML, so if there are any problems with this approach, I'd 
>> appreciate it if you could let me know.
>> 2018年5月4日金曜日 3:39:32 UTC+9 Rustem:
>>
>>> I managed to do it with just macros and CSS. One thing I could not avoid 
>>> is

[tw5] Re: copy button in each code block

2023-02-27 Thread yasai ya
Sorry, it wasn't fixed at all, but finally I fixed the problem.

param=<<__tx__>>
↓
param={{{ [<__tx__>trim[]] }}}



Full code
---

\define code(tx)


table.mycodeblock {
  border:   none;
  margin:   7px 0 11px;
}
table.mycodeblock pre {
  margin:   0;
}
table.mycodeblock td {
  border:   none;
  padding:  0;
  position: relative;
}
table.mycodeblock button {
  position: absolute;
  left: -30px;
  top:  2px;
}
table.mycodeblock button svg.tc-image-button {
  height:   2em;
  width:2em;
  fill: none;
}
table.mycodeblock:hover button svg.tc-image-button {
  fill: <<color tiddler-controls-foreground>>;
  animation: 0.35s cubic-bezier(.35, 0, .35, 1) 2 alternate;
  animation-name: breathe,blink;
}
table.mycodeblock button:hover svg.tc-image-button {
  fill: <<color orange>>;
}
@keyframes blink {
  from { opacity: 1; }
  to   { opacity: .35; }
}
@keyframes breathe {
  from { transform: scale(1); }
  to   { transform: scale(1.5); }
}




```$tx$
```

<$button class="tc-btn-invisible" message="tm-copy-to-clipboard" 
param={{{ [<__tx__>trim[]] }}} 
tooltip={{$:/language/Buttons/CopyToClipboard/Hint}}>{{$:/core/images/copy-clipboard}}
\end
2023年2月24日金曜日 13:47:50 UTC+9 yasai ya:

> Thank you!
> Your post was very helpful.
>
> But it looked like the CSS wouldn't apply without the macro tiddler was 
> visible.
>
> So I modified it like this.
>
> ```
> \define code(tx)
>
> 
> table.mycodeblock {
>   border:   none;
>   margin:   7px 0 11px;
> }
> table.mycodeblock pre {
>   margin:   0;
> }
> table.mycodeblock td {
>   border:   none;
>   padding:  0;
>   position: relative;
> }
> table.mycodeblock button {
>   position: absolute;
>   left: -30px;
>   top:  2px;
> }
> table.mycodeblock button svg.tc-image-button {
>   height:   2em;
>   width:2em;
>   fill: none;
> }
> table.mycodeblock:hover button svg.tc-image-button {
>   fill: <<color tiddler-controls-foreground>>;
>   animation: 0.35s cubic-bezier(.35, 0, .35, 1) 2 alternate;
>   animation-name: breathe,blink;
> }
> table.mycodeblock button:hover svg.tc-image-button {
>   fill: <<color orange>>;
> }
> @keyframes blink {
>   from { opacity: 1; }
>   to   { opacity: .35; }
> }
> @keyframes breathe {
>   from { transform: scale(1); }
>   to   { transform: scale(1.5); }
> }
> 
> 
>
> ```$tx$
> ```
> <$button class="tc-btn-invisible" message="tm-copy-to-clipboard" 
> param=<<__tx__>> 
> tooltip={{$:/language/Buttons/CopyToClipboard/Hint}}>{{$:/core/images/copy-clipboard}}
> \end
> ```
>
> I'm newbie to HTML, so if there are any problems with this approach, I'd 
> appreciate it if you could let me know.
> 2018年5月4日金曜日 3:39:32 UTC+9 Rustem:
>
>> I managed to do it with just macros and CSS. One thing I could not avoid 
>> is copying line breaks before and after the code. Hope there will be a 
>> plugin someday that will overcome that, as well as do away with the table 
>> wrapper. Here is a self-contained demo tiddler.
>>
>> \define code(tx)
>> 
>>
>> ```$tx$
>> ```
>> <$button class="tc-btn-invisible" 
>> message="tm-copy-to-clipboard" param=<<__tx__>> tooltip={{$:/language/
>> Buttons/CopyToClipboard/Hint}}>{{$:/core/images/copy-clipboard}}> >
>> \end
>>
>> 
>> table.mycodeblock {
>>   border:   none;
>>   margin:   7px 0 11px;
>> }
>> table.mycodeblock pre {
>>   margin:   0;
>> }
>> table.mycodeblock td {
>>   border:   none;
>>   padding:  0;
>>   position: relative;
>> }
>> table.mycodeblock button {
>>   position: absolute;
>>   left: -30px;
>>   top:  2px;
>> }
>> table.mycodeblock button svg.tc-image-button {
>>   height:   2em;
>>   width:2em;
>>   fill: none;
>> }
>> table.mycodeblock:hover button svg.tc-image-button {
>>   fill: <<color tiddler-controls-foreground>>;
>>   animation: 0.35s cubic-bezier(.35, 0, .35, 1) 2 alternate;
>>   animation-name: breathe,blink;
>> }
>> table.mycodeblock button:hover svg.tc-image-button {
>>   fill: <<color orange>>;
>> }
>>
>> @keyframes blink {
>>   from { opacity: 1; }
>>   to   { opacity: .35; }
>> }
>> @keyframes breathe {
>>   from { transform: scale(1); }
>>   to   { transform: scale(1.5); }
>> }
>>
>> 
>>
>>
>> in your tiddlers just write :
>>
>> <> code here
>> more code
>> ""&

[tw5] Re: copy button in each code block

2023-02-23 Thread yasai ya
Thank you!
Your post was very helpful.

But it looked like the CSS wouldn't apply without the macro tiddler was 
visible.

So I modified it like this.

```
\define code(tx)

table.mycodeblock {
  border:   none;
  margin:   7px 0 11px;
}
table.mycodeblock pre {
  margin:   0;
}
table.mycodeblock td {
  border:   none;
  padding:  0;
  position: relative;
}
table.mycodeblock button {
  position: absolute;
  left: -30px;
  top:  2px;
}
table.mycodeblock button svg.tc-image-button {
  height:   2em;
  width:2em;
  fill: none;
}
table.mycodeblock:hover button svg.tc-image-button {
  fill: <>;
  animation: 0.35s cubic-bezier(.35, 0, .35, 1) 2 alternate;
  animation-name: breathe,blink;
}
table.mycodeblock button:hover svg.tc-image-button {
  fill: <>;
}
@keyframes blink {
  from { opacity: 1; }
  to   { opacity: .35; }
}
@keyframes breathe {
  from { transform: scale(1); }
  to   { transform: scale(1.5); }
}



```$tx$
```
<$button class="tc-btn-invisible" message="tm-copy-to-clipboard" 
param=<<__tx__>> 
tooltip={{$:/language/Buttons/CopyToClipboard/Hint}}>{{$:/core/images/copy-clipboard}}
\end
```

I'm newbie to HTML, so if there are any problems with this approach, I'd 
appreciate it if you could let me know.
2018年5月4日金曜日 3:39:32 UTC+9 Rustem:

> I managed to do it with just macros and CSS. One thing I could not avoid 
> is copying line breaks before and after the code. Hope there will be a 
> plugin someday that will overcome that, as well as do away with the table 
> wrapper. Here is a self-contained demo tiddler.
>
> \define code(tx)
> 
>
> ```$tx$
> ```
> <$button class="tc-btn-invisible" message="tm-copy-to-clipboard" 
> param=<<__tx__>> tooltip={{$:/language/Buttons/CopyToClipboard/Hint}}>{{$:
> /core/images/copy-clipboard}}
> \end
>
> 
> table.mycodeblock {
>   border:   none;
>   margin:   7px 0 11px;
> }
> table.mycodeblock pre {
>   margin:   0;
> }
> table.mycodeblock td {
>   border:   none;
>   padding:  0;
>   position: relative;
> }
> table.mycodeblock button {
>   position: absolute;
>   left: -30px;
>   top:  2px;
> }
> table.mycodeblock button svg.tc-image-button {
>   height:   2em;
>   width:2em;
>   fill: none;
> }
> table.mycodeblock:hover button svg.tc-image-button {
>   fill: <>;
>   animation: 0.35s cubic-bezier(.35, 0, .35, 1) 2 alternate;
>   animation-name: breathe,blink;
> }
> table.mycodeblock button:hover svg.tc-image-button {
>   fill: <>;
> }
>
> @keyframes blink {
>   from { opacity: 1; }
>   to   { opacity: .35; }
> }
> @keyframes breathe {
>   from { transform: scale(1); }
>   to   { transform: scale(1.5); }
> }
>
> 
>
>
> in your tiddlers just write :
>
> < code here
> more code
> """>>
>
>
>
> On Saturday, April 28, 2018 at 5:17:04 PM UTC-7, Rustem wrote:
>>
>> That works, thanks. Would be great though, to have the button appear 
>> inside the block, on hover.
>>
>> On Saturday, April 28, 2018 at 2:31:13 AM UTC-7, BurningTreeC wrote:
>>>
>>> hi @Rustem 
>>>
>>> you could just create a macro in a tiddler say $:/_macros tagged with 
>>> $:/tags/Macro with the content:
>>>
>>> \define code(text)
>>> <>
>>> ```
>>> $text$
>>> ```
>>> \end
>>>
>>> in your tiddlers just write:
>>>
>>> <>>
>>> code here
>>>
>>> more code
>>>
>>> """>>
>>>
>>

-- 
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/56f0b616-4d49-4ec9-8197-ea3add4b7c08n%40googlegroups.com.


[tw5] Re: How to choose field value by drop-down list on template?

2022-12-20 Thread yasai ya
<$list filter="[] +[addprefix[Product/]]">
 <$list filter="[] +[get[text]split[,]]">
↓
<$list filter="[] +[addprefix[Product/]] +[get[text]split[,]]">
2022年12月20日火曜日 14:42:47 UTC+9 yasai ya:

> Almost there!
> I got pull-down list. Next I need it to indicate current value.
>
> ↓revised editDataBaseEntry.tid
>
> ---
>  
> <$list filter="[is[current]fields[]] -creator -created -text 
> -title -modified -modifier -color -tags -list" variable="fieldName">
> 
>  <> 
>  
> <$select field="<>" tooltip="">
> <$list filter="[] +[addprefix[Product/]]">
> <$list filter="[] +[get[text]split[,]]">
> >> <$view 
> field='title'/>
> 
> 
> 
> 
> 
> 
>
> -------
> 2022年12月19日月曜日 23:39:09 UTC+9 yasai ya:
>
>> Dear, everyone.
>> I wounder to use TW5 as database, and I am making editor template.
>>
>> I want to choose field value with drop-down list.
>> Could anyone tell me how to make it for template?
>>
>> <$select field="LowVoltage">
>> <$list filter="[title[$:/Ship/LowVoltage]get[text]split[,]]">
>> >><$view field='title'/>
>> 
>> 
>>
>>
>> *I made editor for the tiddler, however It need setting one by one.
>> *My goal is without HTML  the basic operations are, so I separate choices 
>> to another tiddler "$:/Ship/LowVoltage".
>>
>>
>> Attached .tid file
>>
>> editDataBaseEntry.tid
>> *It is editor template.
>> *I am a beginner of HTML. Sorry if it is elementary thing.
>> *TW5 let me start learning HTML. Thanks for the opportunity to grow!
>>
>> 
>> <$list filter="[is[current]fields[]] -creator -created -text -title 
>> -modified -modifier -color -tags -list" variable="fieldName">
>> 
>>  <> 
>>  <$edit field=<>/> 
>> 
>> 
>> 
>>
>> field:<$edit tiddler="$:/temp/editDataBaseEntry" field="Edit-field"/>
>> <$fieldmangler>
>> <$button>
>> <$action-setfield $field={{$:/temp/editDataBaseEntry!!Edit-field}} 
>> $value="default" />
>> Add
>> 
>> 
>> / 
>> <$button>
>> <$action-confirm $message="Do you wish to delete the field?">
>> <$action-deletefield $field={{$:/temp/editDataBaseEntry!!Edit-field}} />
>> Delete
>> 
>> 
>>
>> Product_11036_edit.tid
>> *It is data base tiddler. The datas on each fields.
>>
>> Product_11036.tid
>> *Just show with edit template.
>> text:{{Product/11036||editDataBaseEntry}}
>>
>

-- 
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/602bc65d-d28c-463e-ad93-17496096f8cbn%40googlegroups.com.


[tw5] Re: How to choose field value by drop-down list on template?

2022-12-19 Thread yasai ya
Almost there!
I got pull-down list. Next I need it to indicate current value.

↓revised editDataBaseEntry.tid
---
 
<$list filter="[is[current]fields[]] -creator -created -text -title 
-modified -modifier -color -tags -list" variable="fieldName">

 <> 
 
<$select field="<>" tooltip="">
<$list filter="[] +[addprefix[Product/]]">
<$list filter="[] +[get[text]split[,]]">
>> <$view 
field='title'/>






-------
2022年12月19日月曜日 23:39:09 UTC+9 yasai ya:

> Dear, everyone.
> I wounder to use TW5 as database, and I am making editor template.
>
> I want to choose field value with drop-down list.
> Could anyone tell me how to make it for template?
>
> <$select field="LowVoltage">
> <$list filter="[title[$:/Ship/LowVoltage]get[text]split[,]]">
> >><$view field='title'/>
> 
> 
>
>
> *I made editor for the tiddler, however It need setting one by one.
> *My goal is without HTML  the basic operations are, so I separate choices 
> to another tiddler "$:/Ship/LowVoltage".
>
>
> Attached .tid file
>
> editDataBaseEntry.tid
> *It is editor template.
> *I am a beginner of HTML. Sorry if it is elementary thing.
> *TW5 let me start learning HTML. Thanks for the opportunity to grow!
>
> 
> <$list filter="[is[current]fields[]] -creator -created -text -title 
> -modified -modifier -color -tags -list" variable="fieldName">
> 
>  <> 
>  <$edit field=<>/> 
> 
> 
> 
>
> field:<$edit tiddler="$:/temp/editDataBaseEntry" field="Edit-field"/>
> <$fieldmangler>
> <$button>
> <$action-setfield $field={{$:/temp/editDataBaseEntry!!Edit-field}} 
> $value="default" />
> Add
> 
> 
> / 
> <$button>
> <$action-confirm $message="Do you wish to delete the field?">
> <$action-deletefield $field={{$:/temp/editDataBaseEntry!!Edit-field}} />
> Delete
> 
> 
>
> Product_11036_edit.tid
> *It is data base tiddler. The datas on each fields.
>
> Product_11036.tid
> *Just show with edit template.
> text:{{Product/11036||editDataBaseEntry}}
>

-- 
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/dfaf5851-4330-461b-82eb-8778b40dddc6n%40googlegroups.com.


[tw5] How to choose field value by drop-down list on template?

2022-12-19 Thread yasai ya
Dear, everyone.
I wounder to use TW5 as database, and I am making editor template.

I want to choose field value with drop-down list.
Could anyone tell me how to make it for template?

<$select field="LowVoltage">
<$list filter="[title[$:/Ship/LowVoltage]get[text]split[,]]">
>><$view field='title'/>




*I made editor for the tiddler, however It need setting one by one.
*My goal is without HTML  the basic operations are, so I separate choices 
to another tiddler "$:/Ship/LowVoltage".


Attached .tid file

editDataBaseEntry.tid
*It is editor template.
*I am a beginner of HTML. Sorry if it is elementary thing.
*TW5 let me start learning HTML. Thanks for the opportunity to grow!


<$list filter="[is[current]fields[]] -creator -created -text -title 
-modified -modifier -color -tags -list" variable="fieldName">

 <> 
 <$edit field=<>/> 




field:<$edit tiddler="$:/temp/editDataBaseEntry" field="Edit-field"/>
<$fieldmangler>
<$button>
<$action-setfield $field={{$:/temp/editDataBaseEntry!!Edit-field}} 
$value="default" />
Add


/ 
<$button>
<$action-confirm $message="Do you wish to delete the field?">
<$action-deletefield $field={{$:/temp/editDataBaseEntry!!Edit-field}} />
Delete



Product_11036_edit.tid
*It is data base tiddler. The datas on each fields.

Product_11036.tid
*Just show with edit template.
text:{{Product/11036||editDataBaseEntry}}

-- 
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/82b99425-7f8e-4790-80b1-d5ffacd14c47n%40googlegroups.com.


Product_11036_edit.tid
Description: Binary data


Product_11036.tid
Description: Binary data


editDataBaseEntry.tid
Description: Binary data