Folks,
I thought I would raise this for discussion before I consider asking for a core change to add hackability to the list item template;
Background
Various core lists in the sidebar and search ultimately list each item found using the tiddler $:/core/ui/ListItemTemplate which contains;
<div class="tc-menu-list-item">
<$link />
</div>
- using
<$transclude tiddler="$:/core/ui/ListItemTemplate"/>
- This has the advantage you can change how these items are listed editing only $:/core/ui/ListItemTemplate
- This has the disadvantage that editing effects all lists using $:/core/ui/ListItemTemplate which includes the following;
- $:/core/ui/AdvancedSearch/Filter
- $:/core/ui/AdvancedSearch/Shadows
- $:/core/ui/AdvancedSearch/System
- $:/core/ui/DefaultSearchResultList
- $:/core/ui/MissingTemplate
- $:/core/ui/MoreSideBar/All
- $:/core/ui/MoreSideBar/Drafts
- $:/core/ui/MoreSideBar/Orphans
- $:/core/ui/MoreSideBar/Shadows
- $:/core/ui/MoreSideBar/System
- $:/core/ui/TagTemplate
- $:/core/ui/TiddlerInfo/List
- $:/core/ui/TiddlerInfo/Listed
- $:/core/ui/TiddlerInfo/References
- $:/core/ui/TiddlerInfo/Tagging
- $:/core/ui/UntaggedTemplate
A number of useful customisations can be done to the list item tiddler to include buttons such as edit, copy to clipboard, checkboxes to list or tag, show tag pills on the listed tiddler even and popup tooltips or previews etc…
- However since the core tiddlers using this include ones in advanced search, default search and sidebar tabs extending the features for all of these is not practical.
I want to propose we allow the default $:/core/ui/ListItemTemplate be overridden without needing to edit these core tiddlers.
- Although we may need to update the core tiddlers, so as to enable this hackability
So I have some ideas but thought I would seek your views and ideas how we may achieve this?