David, The tree macro is defined here $:/core/macros/tree
- you could modify it to get the desired result - or make a new one of your own - Consider if it has an icon use it if not use the default. - Perhaps its best to also display the icon if its exist and still display the defaults because it indicates file or "folder". - Inside the macro that defines the link displayed the variable <<full-title>> is the actual tiddlername The following is a modification of one of these macros to display an icon on leaf items if it exists; \define leaf-link(full-title,chunk,separator: "/") <$set name=icon-tiddler tiddler=<<__full-title__>> field=icon> <$link to=<<__full-title__>>> <$transclude tiddler=<<icon-tiddler>>/> <$text text=<<__chunk__>>/></$link> </$set> \end Regards Tones On Thursday, 17 December 2020 at 07:01:30 UTC+11 david.j.winfi...@gmail.com wrote: > Is there a simple way to associate an image/icon with a tiddler (such as > an icon field), so that the icon will show up in the tree macro? > > Something like tiddlers > H:/Location/Location 1 > H:/Location/Location 2 > > With the following tree: > <<tree "H:/Location/">> > > > With each Location 1 and Location 2 being able to have a unique icon image > in the tree instead of the default icon. > > Thanks, > David > > -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/4e2d79df-c145-43b7-bd58-b0c33cfec964n%40googlegroups.com.