I am a little confused by this description. I have used the topic list excerpts theme component on my forum without issues before. So, what exactly does the setting change? The description reads as if I can only use excerpts while the setting is enabled and I use a component that shows them, but excerpts seem to work on my forum with the setting disabled and only topic list excerpts enabled. What would be different if I enabled the setting?
Side note: Is there a reason why this setting wasnât added to an âareaâ like âlayoutâ?
Yes this is related to Horizon: High Context Topic Cards, the original thought was that we need to expose this setting so people can turn on excerpts in those Horizon topic cards without console access⊠but itâs a little bit of a dangerous setting to expose because if you enable it you add a lot of data to the topic list even if excerpts arenât being shown in the current theme.
The follow-up is to instead enable the hidden site setting when the Horizon theme has topic card high context enabled⊠that way the setting is constrained to a situation where it will be used.
By default, we only serialize excerpts for pinned topics
Unless the always_include_topic_excerpts site setting is enabled, or a theme is using a âtheme modifierâ. Maybe the theme youâre using is using the modifier?
so what is the rationale for making new features horizon only? making new features limited to an in-core theme that canât be customized seems to go against the general Discourse ethos? we canât even use it in foundation? there are lines of code in core for horizon fixes specificallyâŠ
So, if I change the setting in Horizon, it will change the hidden site setting? Does that mean that it will also be activated in safe mode because it is a site setting? I expected that, similar to what zogstrip just described, the Horizon theme would activate excerpts regardless of the setting, just like you can by adding the topic list excerpts component to Foundation.
Time and complexity really, to add a view like this for Foundation we need to update the API to work with more flexible layouts⊠so weâd need to create new APIs, maintain both for some period, then deprecate old ones.
Horizon is more of a clean slate, has more limits on customization, and by default lacks some information like tags in the topic list⊠so it was easier to prioritize without worrying about backwards compatibility. Ideally weâll take what we learn from Horizon and use that to update Foundation too.
Sorry youâre right, that was a bit off⊠it doesnât literally enable that site setting⊠but it does the same thing (serialize excerpts) only for the theme using a theme modifier
Iâm not sure what youâre getting at. I said that the topic list excerpts component worked without the setting before:
So I assume it was using the modifier, but the new description of the site setting said that even after you enabled it, you would need the âtopic list excerptsâ component to see them.
My question was why I need the site setting if the component seems to enable excerpts without it.
This excerpt may not be visible unless a theme component like âTopic list excerptsâ is enabled
My question was not why it works, but why I would use the setting, because thatâs the information I expect from a description. And thatâs why I said it seems I donât need to understand because the description is no longer needed since it was removed.
To be clear: the topic excerpts feature is not horizon-only. Any theme can enable it via the theme-modifier. Many themes do this.
The site setting was the old way to do this, before theme modifiers existed. It was unhidden today because we briefly thought that it was the only way to make it a toggle-able option for users of horizon. But in fact, there is a way to make theme modifiers link to theme settings, which is what weâve now done in horizon.
Weâve also documented that strategy, so that itâs clear how other themes can do it. (And so we donât forget about it ourselves )