# Topic List Previews (legacy)

**URL:** https://meta.discourse.org/t/topic-list-previews-legacy/101646
**Category:** Plugin
**Tags:** deprecated
**Created:** [November 9, 2018, 3:56am UTC](https://meta.discourse.org/t/topic-list-previews-legacy/101646 "2018-11-09T03:56:38Z")
**Posts on this page:** 20
**Page:** 18

<div class="post-metadata">

### Author: ![Moksh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moksh/32/188137_2.png) [@Moksh](https://meta.discourse.org/u/Moksh)
#### Post date: [August 23, 2020, 6:07pm UTC](https://meta.discourse.org/t/topic-list-previews-legacy/101646/1288 "2020-08-23T18:07:50Z")

</div>

Yes. If you use the below theme component and not the plugin.

`https://github.com/merefield/discourse-topic-list-previews-theme`

---

<div class="post-metadata">

### Author: ![Alan\_Xi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alan_xi/32/151651_2.png) [@Alan\_Xi](https://meta.discourse.org/u/Alan_Xi)
#### Post date: [August 26, 2020, 4:31am UTC](https://meta.discourse.org/t/topic-list-previews-legacy/101646/1289 "2020-08-26T04:31:45Z")

</div>

Thanks for the response! So far I haven’t experimented yet because I barely have a basic understanding of CSS. Would you mind pointing out a general direction so I could try experimenting? I am not sure which section of the code is responsibel for tag behavior.

20 tags is indeed a lot. It happens because we use the forum to share writing, and users absolutely go crazy when they tag their own creations. 😉 Its quite nice though because it makes locating content according to different characters, settings and relationships super easy.

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [August 26, 2020, 6:20am UTC](https://meta.discourse.org/t/topic-list-previews-legacy/101646/1290 "2020-08-26T06:20:27Z")

</div>

The quickest way to expedite this is to share your site. You can PM me if you prefer.

You need to get used to using the Browser Inspector and modifying Themes, even at a basic level. [Beginner's guide to using Discourse Themes](https://meta.discourse.org/t/beginners-guide-to-using-discourse-themes/91966) Then [Developing Discourse Themes & Theme Components](https://meta.discourse.org/t/developer-s-guide-to-discourse-themes/93648)

Use the Browser Inspector to find the right bits. Experiment. Here’s the guide for Firefox: [Page Inspector — Firefox Source Docs documentation](https://developer.mozilla.org/en-US/docs/Tools/Page_Inspector)

It might seem a lot to learn, but it’s worth it, quite rewarding and help you administer your site more effectively in the future.

---

<div class="post-metadata">

### Author: ![bartv](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bartv/32/130052_2.png) [@bartv](https://meta.discourse.org/u/bartv)
#### Post date: [September 1, 2020, 5:40am UTC](https://meta.discourse.org/t/topic-list-previews-legacy/101646/1291 "2020-09-01T05:40:53Z")

</div>

@merefield It’s update time! 🎉 Are there any known issues?

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [September 1, 2020, 6:22am UTC](https://meta.discourse.org/t/topic-list-previews-legacy/101646/1292 "2020-09-01T06:22:07Z")

</div>

Not that I’m aware of. I’ve rebuilt two sites this morning and both the TC and the plugin seem to be working fine.

---

<div class="post-metadata">

### Author: ![Moksh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moksh/32/188137_2.png) [@Moksh](https://meta.discourse.org/u/Moksh)
#### Post date: [September 1, 2020, 6:51am UTC](https://meta.discourse.org/t/topic-list-previews-legacy/101646/1293 "2020-09-01T06:51:27Z")

</div>

Dear @merefield I am so grateful for your plugin and I would like to contribute the solution for this problem. I don’t have the dev environment set up to do a pull request but this seems to fix the problem.

**You can try this solution:**

**In this file:** `https://github.com/merefield/discourse-topic-list-previews-theme/blob/master/javascripts/discourse/templates/list/topic-meta.hbr`

**Replace:**

```
  <div class='topic-replies posts-map {{likesHeat}} inline sub' title='{{title}}'>
    <a href class='posts-map badge-posts {{likesHeat}}'>{{d-icon "far-comment"}}{{number topic.replyCount}}</a>
  </div>

```

**With:**

```
	  <div class='topic-replies posts-map {{likesHeat}} inline sub' title='{{title}}'>
        {{d-icon "far-comment"}}{{number topic.replyCount}}
      </div>

```

Basically, getting rid of **href** tag around the comments. I don’t know the significance of it but removing it will allow you to select the different comments and navigate to them inside the topic.

Thank you for your support.

* * *

**Here is the original issue:**

`https://github.com/merefield/discourse-topic-list-previews-theme/`

I believe, I found a bug in the Topic List Preview List when someone clicks the “Replies”.

**Ideal situation:**

Click the replies for the topic in the topic preview list, you get to select the Dates and you choose one and it takes you to the topic details.

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

**My problem:**

Click the replies for the topic in the topic preview list, I see the Dates selection, but before I chose one, Topic List Preview page refreshes and it doesn’t take you to the Topic details.

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [September 1, 2020, 7:34am UTC](https://meta.discourse.org/t/topic-list-previews-legacy/101646/1294 "2020-09-01T07:34:18Z")

</div>

Absolutely delighted if you would submit a PR to fix this.

So, consider properly setting up a dev environment to allow you to test this and submit accordingly.

However, this is not the issue I don’t believe.

In the non-tiles view you screenshot, it’s actually using the the core template.:

(for plugin dev, our mantra is never diverge from core code unless you _really_ have to, especially when it comes to templates!)

```plaintext
{{#if notTilesStyle}}

SNIP

  {{raw "list/posts-count-column" topic=topic}}

```

(see `https://github.com/merefield/discourse-topic-list-previews-theme/blob/master/javascripts/discourse/templates/list/topic-list-item.hbr`)

I don’t believe for non-Tiles view it ever visits the file you reference: `https://github.com/merefield/discourse-topic-list-previews-theme/blob/master/javascripts/discourse/templates/list/topic-meta.hbr`

This is only used for Tiles view. The icons in the template are the give-away.

But don’t let me dent your enthusiasm, please get set up and go for it and I will review any PR you submit.

If you could go further and fix this for Tiles view too that would be even better!

---

<div class="post-metadata">

### Author: ![Moksh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moksh/32/188137_2.png) [@Moksh](https://meta.discourse.org/u/Moksh)
#### Post date: [September 1, 2020, 8:07am UTC](https://meta.discourse.org/t/topic-list-previews-legacy/101646/1295 "2020-09-01T08:07:01Z")

</div>

> [@merefield](#):
>
> `posts-count-column`

Thanks @merefield for the feedback. I reviewed the code again. You are right, for non-tile style, the core template is used. For tile style, my proposed solution could fix the issue.

I will take time for the PR though and when it is ready, you will receive one.

Thanks again for your support!

---

<div class="post-metadata">

### Author: ![bartv](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bartv/32/130052_2.png) [@bartv](https://meta.discourse.org/u/bartv)
#### Post date: [September 1, 2020, 10:29am UTC](https://meta.discourse.org/t/topic-list-previews-legacy/101646/1296 "2020-09-01T10:29:16Z")

</div>

The update went without a problem 🙏

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [September 1, 2020, 10:31am UTC](https://meta.discourse.org/t/topic-list-previews-legacy/101646/1297 "2020-09-01T10:31:23Z")

</div>

Yup, I released a mid-month fix for a break and we’ve been lucky the rest of it 🙂

---

<div class="post-metadata">

### Author: ![HeyRR](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/heyrr/32/192157_2.png) [@HeyRR](https://meta.discourse.org/u/HeyRR)
#### Post date: [September 7, 2020, 3:51am UTC](https://meta.discourse.org/t/topic-list-previews-legacy/101646/1298 "2020-09-07T03:51:34Z")

</div>

Thanks for this awesome work! is it possible to apply preview to only one specific tag? i.e filter by other tags will show them with default view.

---

<div class="post-metadata">

### Author: ![Terrapop](https://avatars.discourse-cdn.com/v4/letter/t/ecd19e/32.png) [@Terrapop](https://meta.discourse.org/u/Terrapop)
#### Post date: [September 7, 2020, 6:15am UTC](https://meta.discourse.org/t/topic-list-previews-legacy/101646/1299 "2020-09-07T06:15:10Z")

</div>

The same requirement for me, too:

[https://meta.discourse.org/t/topic-list-thumbnails-theme-component/150602/105?u=terrapop](https://meta.discourse.org/t/topic-list-thumbnails-theme-component/150602/105)

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [September 7, 2020, 6:35am UTC](https://meta.discourse.org/t/topic-list-previews-legacy/101646/1300 "2020-09-07T06:35:54Z")

</div>

We already support discretion over the tags discovery route. No plans to increase complexity by targeting specific tags at present, settings is already a rats’ nest?

Perhaps if this was a funded piece of work … [Pavilion](https://thepavilion.io/w/feature-request/steps/step_1)

---

<div class="post-metadata">

### Author: ![Siddhu\_Dhangar](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/siddhu_dhangar/32/123849_2.png) [@Siddhu\_Dhangar](https://meta.discourse.org/u/Siddhu_Dhangar)
#### Post date: [September 11, 2020, 5:40am UTC](https://meta.discourse.org/t/topic-list-previews-legacy/101646/1302 "2020-09-11T05:40:16Z")

</div>

[https://github.com/paviliondev/discourse-topic-previews](https://github.com/paviliondev/discourse-topic-previews)

I installed this plugin on new discourse instance and version of this instance is **2.6.0.beta2**. Earlier it was working fine.but now It is working. but all posts are not visible after i open any topics. Can you help me out ?

I attached some images here.

 ![Screenshot from 2020-09-11 11-07-18](https://global.discourse-cdn.com/meta/original/3X/f/a/fac10cec6e15d367c734c934241a7c3dfa5ae642.png)

 ![Screenshot from 2020-09-11 11-09-48](https://global.discourse-cdn.com/meta/original/3X/0/7/07540284a2accce67841ce5929c8c8dab8f61fd4.png)

---

<div class="post-metadata">

### Author: ![fzngagan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fzngagan/32/259349_2.png) [@fzngagan](https://meta.discourse.org/u/fzngagan)
#### Post date: [September 11, 2020, 5:45am UTC](https://meta.discourse.org/t/topic-list-previews-legacy/101646/1303 "2020-09-11T05:45:56Z")

</div>

Are you on latest discourse?

---

<div class="post-metadata">

### Author: ![Siddhu\_Dhangar](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/siddhu_dhangar/32/123849_2.png) [@Siddhu\_Dhangar](https://meta.discourse.org/u/Siddhu_Dhangar)
#### Post date: [September 11, 2020, 5:50am UTC](https://meta.discourse.org/t/topic-list-previews-legacy/101646/1304 "2020-09-11T05:50:05Z")

</div>

yes.

 ![Screenshot from 2020-09-11 11-19-38](https://global.discourse-cdn.com/meta/original/3X/0/b/0b2c3e47839bf74568d95e66a0986e27fc9c2865.png)

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [September 11, 2020, 6:41am UTC](https://meta.discourse.org/t/topic-list-previews-legacy/101646/1305 "2020-09-11T06:41:30Z")

</div>

Please note we are outside the support window (see the OP).

However, cannot reproduce. That doesn’t look like recent TLP code? (be my guest, search for `.router` on GitHub). Perhaps you’ve got another plugin or theme component installed that is causing that error? Breaking javascript will stop TLP (and other things) in its tracks. I suggest you remove all plugins and TCs except TLP and try again, then add them back in one by one to find the culprit.

---

<div class="post-metadata">

### Author: ![Siddhu\_Dhangar](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/siddhu_dhangar/32/123849_2.png) [@Siddhu\_Dhangar](https://meta.discourse.org/u/Siddhu_Dhangar)
#### Post date: [September 11, 2020, 7:34am UTC](https://meta.discourse.org/t/topic-list-previews-legacy/101646/1306 "2020-09-11T07:34:56Z")

</div>

i tested again. i disabled all the plugins which i installed in the discourse. when i enable topic previews plugin after that i got below error.

 ![Screenshot from 2020-09-11 13-02-00](https://global.discourse-cdn.com/meta/original/3X/9/4/94b9e2cfcec9fe228ae9403258b7e3b18ace8fd9.png)

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [September 11, 2020, 8:14am UTC](https://meta.discourse.org/t/topic-list-previews-legacy/101646/1307 "2020-09-11T08:14:38Z")

</div>

There is something very strange with your setup. I have just rebuilt a site of mine with latest `tests-passed` and it’s working completely fine. It is also working with latest `master` for me in dev. Be sure to check your installed theme components too - clear them all out as well.

---

<div class="post-metadata">

### Author: ![fzngagan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fzngagan/32/259349_2.png) [@fzngagan](https://meta.discourse.org/u/fzngagan)
#### Post date: [September 11, 2020, 8:31am UTC](https://meta.discourse.org/t/topic-list-previews-legacy/101646/1308 "2020-09-11T08:31:19Z")

</div>

Also do the same steps for the ratings plugin. 🙂

[Previous page](https://meta.discourse.org/t/topic-list-previews-legacy/101646.md?page=17)

[Next page](https://meta.discourse.org/t/topic-list-previews-legacy/101646.md?page=19)
