mirror of
				https://github.com/Jermolene/TiddlyWiki5
				synced 2025-10-31 07:32:59 +00:00 
			
		
		
		
	Plugin improvements
* Improve docs * Improve styling of subplugins
This commit is contained in:
		| @@ -78,13 +78,15 @@ $:/state/add-plugin-info/$(connectionTiddler)$/$(assetInfo)$ | ||||
| <div class="tc-plugin-info-dropdown-body"> | ||||
| <$transclude tiddler=<<assetInfo>> field="readme" mode="block"/> | ||||
| </div> | ||||
| <div class="tc-plugin-info-sub-plugins"> | ||||
| <$set name="original-title" value={{{ [<assetInfo>get[original-title]] }}}> | ||||
| <$list filter="[all[tiddlers+shadows]tag[$:/tags/RemoteAssetInfo]server-url{!!url}original-plugin-type[$type$]has[parent-plugin]parent-plugin<original-title>limit[1]]" variable="ignore"> | ||||
| <div class="tc-plugin-info-sub-plugins"> | ||||
| <$list filter="[all[tiddlers+shadows]tag[$:/tags/RemoteAssetInfo]server-url{!!url}original-plugin-type[$type$]has[parent-plugin]parent-plugin<original-title>sort[title]sort[name]]" variable="assetInfo"> | ||||
| <<display-plugin-info "$type$">> | ||||
| </$list> | ||||
| </$set> | ||||
| </div> | ||||
| </$list> | ||||
| </$set> | ||||
| </div> | ||||
| </$reveal> | ||||
| </$set> | ||||
|   | ||||
| @@ -1,5 +1,5 @@ | ||||
| created: 20190928081810311 | ||||
| modified: 20190928081811355 | ||||
| modified: 20190928103750812 | ||||
| tags:  | ||||
| title: Plugin Types | ||||
| type: text/vnd.tiddlywiki | ||||
| @@ -15,4 +15,6 @@ The following plugin types are used internally by the core: | ||||
| * `import` - for the special $:/Import plugin created while importing is in progress | ||||
| * `info` - for the special $:/temp/info-plugin tiddler created by the InfoMechanism | ||||
|  | ||||
| While not supported by the plugin library, it is also possible to use custom plugin types to build plugin-like behaviour with a custom user interface. Plugins with a custom type will automatically receive the same behaviour as plain plugins but can display a custom user interface using an appropriate [[view template segment|SystemTag: $:/tags/ViewTemplate]]. | ||||
| While not supported by the plugin library, it is also possible to use custom plugin types to build plugin-like behaviour with a custom user interface. Plugins with a custom type will automatically receive the same behaviour as plain plugins but can display a custom user interface using an appropriate [[view template segment|SystemTag: $:/tags/ViewTemplate]]. | ||||
|  | ||||
| By default, tiddlers within plugins with custom plugin types will not be registered as shadow tiddlers (the constituent tiddlers can still be addressed as subtiddlers by the TranscludeWidget, ViewWidget or the [[plugintiddlers Operator]]). Setting a configuration tiddler `$:/config/RegisterPluginType/<plugin-type>` to `yes` will cause the tiddlers within the plugin to be registered as shadow tiddlers. | ||||
|   | ||||
| @@ -2168,6 +2168,7 @@ a.tc-tiddlylink.tc-plugin-info:hover .tc-plugin-info > .tc-plugin-info-chunk > s | ||||
|  | ||||
| .tc-plugin-info-dropdown { | ||||
| 	border: 1px solid <<colour muted-foreground>>; | ||||
| 	background: <<colour background>>; | ||||
| 	margin-top: -8px; | ||||
| } | ||||
|  | ||||
| @@ -2180,6 +2181,7 @@ a.tc-tiddlylink.tc-plugin-info:hover .tc-plugin-info > .tc-plugin-info-chunk > s | ||||
|  | ||||
| .tc-plugin-info-dropdown-body { | ||||
| 	padding: 1em 1em 0 1em; | ||||
| 	background: <<colour background>>; | ||||
| } | ||||
|  | ||||
| .tc-plugin-info-sub-plugins { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Jeremy Ruston
					Jeremy Ruston