# Améliorer les extraits de sujets épinglés

**URL:** https://meta.discourse.org/t/improving-pinned-topic-excerpts/17640
**Category:** Feature
**Created:** [Juillet 16, 2014, 5:55 UTC](https://meta.discourse.org/t/improving-pinned-topic-excerpts/17640 "2014-07-16T05:55:23Z")
**Posts on this page:** 8
**Page:** 2

<div class="post-metadata">

### Author: ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)
#### Post date: [Septembre 4, 2014, 3:46 UTC](https://meta.discourse.org/t/improving-pinned-topic-excerpts/17640/21 "2014-09-04T03:46:36Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![mcwumbly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mcwumbly/32/103861_2.png) [@mcwumbly](https://meta.discourse.org/u/mcwumbly)
#### Post date: [Septembre 5, 2014, 6:25 UTC](https://meta.discourse.org/t/improving-pinned-topic-excerpts/17640/22 "2014-09-05T06:25:19Z")

</div>

in the queue…  
[https://github.com/discourse/discourse/pull/2753](https://github.com/discourse/discourse/pull/2753)

---

<div class="post-metadata">

### Author: ![meglio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/meglio/32/71444_2.png) [@meglio](https://meta.discourse.org/u/meglio)
#### Post date: [Janvier 10, 2016, 1:50 UTC](https://meta.discourse.org/t/improving-pinned-topic-excerpts/17640/23 "2016-01-10T13:50:31Z")

</div>

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:

 ![](https://global.discourse-cdn.com/meta/original/3X/b/2/b24ce4d5867721dc734fcedfebe27546a15a15f1.png)

---

<div class="post-metadata">

### Author: ![sarahann](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sarahann/32/96703_2.png) [@sarahann](https://meta.discourse.org/u/sarahann)
#### Post date: [Mai 15, 2018, 5:54 UTC](https://meta.discourse.org/t/improving-pinned-topic-excerpts/17640/24 "2018-05-15T17:54:37Z")

</div>

I noticed that there was a **SiteSetting.post\_excerpt\_maxlength** setting. Which I assume is this:  
 ![image](https://global.discourse-cdn.com/meta/original/3X/d/c/dc3a25a91cce4d25eac9201f47c0c5a3dc7a0686.png)

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](https://global.discourse-cdn.com/meta/original/3X/c/d/cd9497c3f3b938232ff55421c4192d34655b625f.png)

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?

---

<div class="post-metadata">

### Author: ![JamesDb](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jamesdb/32/262538_2.png) [@JamesDb](https://meta.discourse.org/u/JamesDb)
#### Post date: [Juin 24, 2022, 2:18 UTC](https://meta.discourse.org/t/improving-pinned-topic-excerpts/17640/25 "2022-06-24T14:18:19Z")

</div>

J’ai découvert le message initial ici et je suis un peu déçu que l’option d’afficher uniquement le premier paragraphe dans l’extrait n’ait pas été implémentée.

Est-il possible de le faire avec CCS&nbsp;? J’aimerais afficher uniquement le premier paragraphe dans l’extrait des sujets épinglés.

---

<div class="post-metadata">

### Author: ![JamesDb](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jamesdb/32/262538_2.png) [@JamesDb](https://meta.discourse.org/u/JamesDb)
#### Post date: [Juin 24, 2022, 2:32 UTC](https://meta.discourse.org/t/improving-pinned-topic-excerpts/17640/26 "2022-06-24T14:32:02Z")

</div>

Ou peut-être existe-t-il un moyen de dupliquer le premier message afin d’en avoir un avec l’extrait et un autre avec un message plus détaillé ?

Je sais que la plupart des membres de l’équipe Discourse semblent très attachés à la chronologie des messages (même si déplacer des messages d’un autre sujet brise la chronologie).

---

<div class="post-metadata">

### Author: ![copymonopoly](https://avatars.discourse-cdn.com/v4/letter/c/4491bb/32.png) [@copymonopoly](https://meta.discourse.org/u/copymonopoly)
#### Post date: [Février 24, 2025, 9:04 UTC](https://meta.discourse.org/t/improving-pinned-topic-excerpts/17640/27 "2025-02-24T21:04:48Z")

</div>

Je voudrais…trop…

---

<div class="post-metadata">

### Author: ![haydenjames](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/haydenjames/32/255678_2.png) [@haydenjames](https://meta.discourse.org/u/haydenjames)
#### Post date: [Avril 23, 2025, 2:55 UTC](https://meta.discourse.org/t/improving-pinned-topic-excerpts/17640/28 "2025-04-23T14:55:46Z")

</div>

Existe-t-il une solution de contournement à cela en dehors du “rebake” ?

Il s’agit d’un sujet pour lequel j’ai besoin d’un extrait plus court. Je suppose que supprimer et republier après avoir baissé le réglage est la seule autre option ? Ou cela ne résoudra pas non plus le problème ?

Lequel de ces deux réglages ?

 ![The image displays input fields for setting the maximum lengths of a post excerpt and a topic excerpt, with "300" indicated for the post excerpt and "220" designated for the topic excerpt. (Captioned by AI)](https://global.discourse-cdn.com/meta/original/4X/1/b/a/1ba505429f1ab3d0b278a7ac58ee10c9bfd67fce.png)

**EDIT :**

> [@sam](#):
>
> `<span>Mon extrait ici</span>`

Cela a fonctionné pour moi ! Je l’ai utilisé pour la première phrase de la publication et cela a eu l’effet escompté. (et bien sûr, je n’ai pas eu à modifier les réglages ci-dessus) Merci !

[Page précédente](https://meta.discourse.org/t/improving-pinned-topic-excerpts/17640.md?page=1)
