Provide a way to set a field caption and a field name: Difference between revisions

From TotalcmdWiki
Jump to navigation Jump to search
No edit summary
(Use new function instead)
 
Line 1: Line 1:
Currently plugin authors need find a compromise between easy understanding of field names and their visual appearance in custom columns. This visual appearance has to be smaller than the actual field name. Currently the user has to find a short name himself.
Currently plugin authors need find a compromise between easy understanding of field names and their visual appearance in custom columns. This visual appearance has to be smaller than the actual field name. Currently the user has to find a short name himself.


This could be implemented without changing the plugin interface. Total Commander could simply interpret the FieldName value in ContentGetSupportField as FieldName|FieldCaption. If a plugin developer doesn't use a | character the FieldName is also used for the caption.
This could be implemented with a new optional function ContentGetFieldCaptions. If the function isn't defined TC uses the values from ContentGetSupportedFields.


{{backlink|Content plugins Ideas and suggestions|Content plugins (WDX)}}
{{backlink|Content plugins Ideas and suggestions|Content plugins (WDX)}}

Latest revision as of 23:41, 25 March 2008

Currently plugin authors need find a compromise between easy understanding of field names and their visual appearance in custom columns. This visual appearance has to be smaller than the actual field name. Currently the user has to find a short name himself.

This could be implemented with a new optional function ContentGetFieldCaptions. If the function isn't defined TC uses the values from ContentGetSupportedFields.


Back to Content plugins (WDX)