In a Dev category discussion, dsims seeks to enhance the TopicExcerpt component by adding the topic creator’s avatar, but finds no direct way to modify it without duplicating logic — particularly around @expandPinned. merefield suggests alternatives like replacing the excerpt cell or using plugin outlets with CSS, though dsims clarifies the excerpt isn’t a standalone cell and the relevant plugin outlet (topic-list-main-link-bottom) lacks access to @expandPinned. After exploring workarounds, including replicating logic from topic-list-item.gjs and discovery/topics.js, dsims humorously pleads for a cleaner solution. In response, awesomerobot agrees and submits a PR to pass @expandPinned to the topic-list-main-link-bottom outlet, addressing the core request. The thread highlights the complexity of modifying built-in Discourse components and the community’s collaborative problem-solving approach.
I want to add the topic-creator avatar to topic-list excerpts, but there doesn’t seem to be anyway to modify the Topic Excerpt.
TopicExcerpt:
I think the only option is to hide .topic-excerpt with CSS and use my own component via the topic-list-main-link-bottom Plugin Outlet which is right under the TopicExcerpt area. The problem with that is the plugin outlet only gets the topic as an arg, so I have to duplicate all the logic in expandPinned to know if I should be showing it or not.
tl;dr; Could we get a PluginOutlet inside the TopicExcerpt and/or pass @expandPinned to the topic-list-main-link-bottom outlets?