Improving pinned topic excerpts

This is just my opinion, but I’d ignore the site setting. You are going out of your way to provide the excerpt, whereas the site setting is there for the system automating the excerpt.

3 Likes

in the queue…
https://github.com/discourse/discourse/pull/2753

3 Likes

This does not work for me, or I’m not using it correctly:

Приглашаю всех желающих обсудить программу по учету стада,
которую мы можем разработать для козоводов! Слушаю ваши требования.
Что хотите учитывать, и какие возможности программы нужны именно
вам? <span class='excerpt'>[>>> Перейти в тему для обсуждения <<<]
(http://forum.kozovod.com/t/uchet-stada-sozdanie-programmy-sobiraem-mneniya-kozovodov/1938)</span>

… isn’t trimmed in the banner:

I noticed that there was a SiteSetting.post_excerpt_maxlength setting. Which I assume is this:

I was hoping to change the length of a pinned topic/post excerpt. Upon digging into the code, I noticed this:

https://github.com/discourse/discourse/blob/44e58fa3668a2e8f939286094d2b7c415d5d685e/app/models/post.rb
image

It appears 220 is being used for a (pinned) topic excerpt.

I was wondering what the SiteSetting.post_excerpt_maxlength setting did, and if the pinned topic excerpt length can be made into a setting?

6 Likes

I just discovered the initial post here and I’m a bit disappointed that the option to show only the first paragraph in the excerpt was not made.

Is it possible to do this with CCS? I would like to only show the first paragraph in the excerpt of pinned topics

1 Like

Or perhaps is there a way to duplicate the first post so you can have one with the excerpt and one with a more in-depth message?

I know it seems like most of the Discourse Team are very protective of the post chronology (even though moving posts from another topic breaks the chronology)

1 Like