mirror of
				https://github.com/Jermolene/TiddlyWiki5
				synced 2025-10-30 23:23:02 +00:00 
			
		
		
		
	Allow visible edit fields to be configured
Create a tiddler “$:/config/EditTemplateFields/Visibility/fieldname” with the text “hide” to hide a particular field
This commit is contained in:
		| @@ -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> | ||||||
|   | |||||||
							
								
								
									
										12
									
								
								core/wiki/config/EditTemplateFields.multids
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								core/wiki/config/EditTemplateFields.multids
									
									
									
									
									
										Normal file
									
								
							| @@ -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 | ||||||
		Reference in New Issue
	
	Block a user
	 Jermolene
					Jermolene