Modifying Topic Teaser Display
-
Hello,
I am currently running NodeBB (version 4.4.1, Harmony theme).
On topic listing pages, such as "Top" and "Popular," I've observed that an excerpt of the last message in the topic is displayed next to the topic information. (I've attached a screenshot for clarity).
I have two questions regarding this:
How can I change the displayed teaser from the last message to the FIRST (starting) message of the topic?
I would like the excerpt to show the content of the topic's original post (i.e., the topic author's first message) instead of the latest reply. Is this feasible to implement, and if so, what is the recommended approach?Is it possible, without writing a custom plugin, to display a message teaser (either the first or last post, depending on the answer to question 1) directly underneath the topic title on the desktop version, similar to how it's done in the mobile version?
In the theme settings, I see an option "Show topic teasers on mobile devices," and they are indeed displayed below the topic title there. I'd like to have similar functionality for the desktop version, with teasers appearing directly below the topic title in the list. Is there a built-in way to enable this for desktop, or would it require template modifications? -
Hello,
I am currently running NodeBB (version 4.4.1, Harmony theme).
On topic listing pages, such as "Top" and "Popular," I've observed that an excerpt of the last message in the topic is displayed next to the topic information. (I've attached a screenshot for clarity).
I have two questions regarding this:
How can I change the displayed teaser from the last message to the FIRST (starting) message of the topic?
I would like the excerpt to show the content of the topic's original post (i.e., the topic author's first message) instead of the latest reply. Is this feasible to implement, and if so, what is the recommended approach?Is it possible, without writing a custom plugin, to display a message teaser (either the first or last post, depending on the answer to question 1) directly underneath the topic title on the desktop version, similar to how it's done in the mobile version?
In the theme settings, I see an option "Show topic teasers on mobile devices," and they are indeed displayed below the topic title there. I'd like to have similar functionality for the desktop version, with teasers appearing directly below the topic title in the list. Is there a built-in way to enable this for desktop, or would it require template modifications?You can change what is displayed at
/admin/settings/post
..
There is no builtin setting to change the teaser location, you would have to make some changes to the template. For example we modified the harmony theme for a client of ours, you can see how it looks here https://mombrain.com/