Okay…
Here is a first shot at it:
1. Create one tiddler for each meditation ("5 mins"; "10 mins"; "15
mins"; "30 mins") and tag it as "mediation"
2. Create a tiddler "meditation", tag it as "meditation", add a field
"default" and put the meditation-default value as its value.
3. Create a tiddler "$:/config/EditTemplateFields/Visibility/meditation"
and give it the content "hide"
4. Create one tiddler for each excercise ("cycling"; "running"; "yoga";
"boot camp") and tag it "exercise"
5. Create a tiddler "exercise", tag it as "exercise", add a field
"default" and put the exercise-default value as its value.
6. Create a tiddler "$:/config/EditTemplateFields/Visibility/exercise"
and give it the content "hide"
7. Create a tiddler "DropdownFields", tag it as "$:/tags/EditTemplate",
add a field "dropdownfields" and give it the value "excercise
meditation". Copy the below content into the tiddler:
<$list filter="[title<currentTiddler>tag[Journal]]">
<div class="tc-edit-fields">
<table class="tc-edit-fields">
<tbody>
<$list filter="[list[DropdownFields!!dropdownfields]]"
variable="currentField">
<tr class="tc-edit-field">
<td class="tc-edit-field-name">
<$text text=<<currentField>>/>:</td>
<td class="tc-edit-field-value">
<$select field=<<currentField>>>
<$list filter="[title<currentField>has[default]get[default]]"
variable="defaultValue">
<option value=<<defaultValue>>><$text text=<<defaultValue>>/></option>
</$list>
<$list filter="[tag<currentField>sort[]]" variable="currentValue">
<option value=<<currentValue>>><$text text=<<currentValue>>/></option>
</$list>
</$select>
</td>
<td class="tc-edit-field-remove">
<$button class="tc-btn-invisible"
tooltip={{$:/language/EditTemplate/Field/Remove/Hint}}
aria-label={{$:/language/EditTemplate/Field/Remove/Caption}}>
<$action-deletefield $field=<<currentField>>/>
{{$:/core/images/delete-button}}
</$button>
</td>
</tr>
</$list>
</tbody>
</table>
</div>
</$list>
Now every tiddler tagged "Journal" should have your dropdowns.
--
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.