kopia lustrzana https://github.com/miklobit/TiddlyWiki5
Allow visible edit fields to be configured
Create a tiddler “$:/config/EditTemplateFields/Visibility/fieldname” with the text “hide” to hide a particular fieldprint-window-tiddler
rodzic
52bbd6d583
commit
d357e1706c
|
@ -2,11 +2,15 @@ title: $:/core/ui/EditTemplate/fields
|
||||||
tags: $:/tags/EditTemplate
|
tags: $:/tags/EditTemplate
|
||||||
|
|
||||||
\define lingo-base() $:/language/EditTemplate/
|
\define lingo-base() $:/language/EditTemplate/
|
||||||
|
\define config-title()
|
||||||
|
$:/config/EditTemplateFields/Visibility/$(currentField)$
|
||||||
|
\end
|
||||||
<$fieldmangler>
|
<$fieldmangler>
|
||||||
<div class="tw-edit-fields">
|
<div class="tw-edit-fields">
|
||||||
<table class="tw-edit-fields">
|
<table class="tw-edit-fields">
|
||||||
<tbody>
|
<tbody>
|
||||||
<$list filter="[all[current]fields[]] -title -tags -text -creator -created -modified -modifier -type -[[draft.title]] -[[draft.of]] +[sort[title]]" variable="currentField">
|
<$list filter="[all[current]fields[]] +[sort[title]]" variable="currentField">
|
||||||
|
<$reveal type="nomatch" state=<<config-title>> text="hide">
|
||||||
<tr class="tw-edit-field">
|
<tr class="tw-edit-field">
|
||||||
<td class="tw-edit-field-name">
|
<td class="tw-edit-field-name">
|
||||||
<$text text=<<currentField>>/>:</td>
|
<$text text=<<currentField>>/>:</td>
|
||||||
|
@ -17,6 +21,7 @@ tags: $:/tags/EditTemplate
|
||||||
<$button message="tw-remove-field" param=<<currentField>> class="btn-invisible">{{$:/core/images/delete-button}}</$button>
|
<$button message="tw-remove-field" param=<<currentField>> class="btn-invisible">{{$:/core/images/delete-button}}</$button>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
</$reveal>
|
||||||
</$list>
|
</$list>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
|
@ -0,0 +1,12 @@
|
||||||
|
title: $:/config/EditTemplateFields/Visibility/
|
||||||
|
|
||||||
|
title: hide
|
||||||
|
tags: hide
|
||||||
|
text: hide
|
||||||
|
creator: hide
|
||||||
|
created: hide
|
||||||
|
modified: hide
|
||||||
|
modifier: hide
|
||||||
|
type: hide
|
||||||
|
draft.title: hide
|
||||||
|
draft.of: hide
|
Ładowanie…
Reference in New Issue