# New th in topic table

**URL:** https://meta.discourse.org/t/new-th-in-topic-table/280116
**Category:** Development
**Created:** [September 26, 2023, 4:47am UTC](https://meta.discourse.org/t/new-th-in-topic-table/280116 "2023-09-26T04:47:34Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![Shatabdi\_Dash](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/shatabdi_dash/32/317462_2.png) [@Shatabdi\_Dash](https://meta.discourse.org/u/Shatabdi_Dash)
#### Post date: [September 26, 2023, 4:47am UTC](https://meta.discourse.org/t/new-th-in-topic-table/280116/1 "2023-09-26T04:47:34Z")

</div>

I want to create a new th in the topic table \<topic-list.ember-view\> in the thead class . Can anyone tell me how can I do this.

---

<div class="post-metadata">

### Author: ![Lhc\_fl](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lhc_fl/32/268115_2.png) [@Lhc\_fl](https://meta.discourse.org/u/Lhc_fl)
#### Post date: [September 26, 2023, 6:24am UTC](https://meta.discourse.org/t/new-th-in-topic-table/280116/2 "2023-09-26T06:24:06Z")

</div>

You need to have some prior knowledge of handlebars. Then, go through the source code of discourse and find the corresponding path.

[https://github.com/discourse/discourse/blob/main/app/assets/javascripts/discourse/app/raw-templates/topic-list-header.hbr](https://github.com/discourse/discourse/blob/main/app/assets/javascripts/discourse/app/raw-templates/topic-list-header.hbr)

Then create a new file with the same name in your theme component according to the path to overwrite it, just like the example below

[https://github.com/discourse/discourse-mobile-op-avatar-component/blob/main/javascripts/discourse/templates/mobile/list/topic-list-item.hbr](https://github.com/discourse/discourse-mobile-op-avatar-component/blob/main/javascripts/discourse/templates/mobile/list/topic-list-item.hbr)

---

<div class="post-metadata">

### Author: ![Shatabdi\_Dash](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/shatabdi_dash/32/317462_2.png) [@Shatabdi\_Dash](https://meta.discourse.org/u/Shatabdi_Dash)
#### Post date: [September 26, 2023, 7:16am UTC](https://meta.discourse.org/t/new-th-in-topic-table/280116/3 "2023-09-26T07:16:38Z")

</div>

This is not helpful.

---

<div class="post-metadata">

### Author: ![Jagster](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jagster/32/192154_2.png) [@Jagster](https://meta.discourse.org/u/Jagster)
#### Post date: [September 26, 2023, 7:38am UTC](https://meta.discourse.org/t/new-th-in-topic-table/280116/4 "2023-09-26T07:38:14Z")

</div>

Why not 😳 It is a valid answer AFAIK.

---

<div class="post-metadata">

### Author: ![Lilly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lilly/32/575047_2.png) [@Lilly](https://meta.discourse.org/u/Lilly)
#### Post date: [September 26, 2023, 8:12am UTC](https://meta.discourse.org/t/new-th-in-topic-table/280116/5 "2023-09-26T08:12:06Z")

</div>

That is unfortunate because it is the correct answer and @Lhc_fl is very helpful.

What part don’t you understand? What you are a asking is not necessarily an easy change to make for someone who is not familiar with Discourse development using handlebars templates.

---

<div class="post-metadata">

### Author: ![hawm](https://avatars.discourse-cdn.com/v4/letter/h/f07891/32.png) [@hawm](https://meta.discourse.org/u/hawm)
#### Post date: [September 26, 2023, 9:10am UTC](https://meta.discourse.org/t/new-th-in-topic-table/280116/6 "2023-09-26T09:10:55Z")

</div>

> [@Lhc\_fl](#):
>
> Then create a new file with the same name in your theme component according to the path to overwrite it

Or using the raw plugin outlet?

> [@An interesting strategy for passing properties via raw template plugin outlets](https://meta.discourse.org/t/an-interesting-strategy-for-passing-properties-via-raw-template-plugin-outlets/210054):
>
> A quick question on this. I noticed something interesting in TLT: There is no passing of the model here. Yet you manage to do this: I can only assume this is a stable strategy for passing down the model properties because it’s being employed here - any caveats? One of the reasons I was finding these available plugin outlets less useful was because they don’t often explicitly pass down the relevant model. Is this pattern documented anywhere? I haven’t seen it in the Ember guides …

> [@How to implement "raw-plugin-outlet"](https://meta.discourse.org/t/how-to-implement-raw-plugin-outlet/178385/2):
>
> Welcome! sorry this wasn’t answered earlier, but hopefully this will help someone… To use a raw plugin outlet you need to create an hbr file, like this: /connectors/topic-list-before-status/my-content.hbr If you’re adding static HTML you can add it within that file. If you want to some custom logic, you can use this structure: /raw-views/my-object.js /templates/my-object.hbr and within your /connectors/topic-list-before-status/my-content.hbr file you’d add: {{my-object}}

---

<div class="post-metadata">

### Author: ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)
#### Post date: [September 26, 2023, 10:10am UTC](https://meta.discourse.org/t/new-th-in-topic-table/280116/7 "2023-09-26T10:10:59Z")

</div>

It feels to me that “this is not helpful” means here “I don’t know how to do that”.

Please read our official guide: [Developing Discourse Themes & Theme Components](https://meta.discourse.org/t/beginners-guide-to-developing-discourse-themes/93648).

There are several ways to overrides templates (which is a solution for which you are trying to achieve). One is described in this section: [https://meta.discourse.org/t/beginners-guide-to-developing-discourse-themes/93648#overriding-discourse-templates-23](https://meta.discourse.org/t/beginners-guide-to-developing-discourse-themes/93648#overriding-discourse-templates-23)

---

<div class="post-metadata">

### Author: ![Shatabdi\_Dash](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/shatabdi_dash/32/317462_2.png) [@Shatabdi\_Dash](https://meta.discourse.org/u/Shatabdi_Dash)
#### Post date: [September 29, 2023, 3:58am UTC](https://meta.discourse.org/t/new-th-in-topic-table/280116/8 "2023-09-29T03:58:51Z")

</div>

I want to get the data from the \<post\_replies\> table. and use it in the button which is present in the \< topic-list-table\> for every row it will different posts so according to the post id it will retrive the last reply and when click on the button present in the table it will paste the last reply in the container.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [September 30, 2023, 12:25pm UTC](https://meta.discourse.org/t/new-th-in-topic-table/280116/9 "2023-09-30T12:25:22Z")

</div>

I still don’t know what you want to happen. Maybe say what you want to happen without describing anything about how to do it.
