Topic List Previews Theme Component


^ This is how it looks when I load the real page

Now, I believe it has something to do with my discourse settings??

Is there a specific setting that has to be activated for this component to work? I really do not know why it is not working the way it should…

Hi there, thanks for your interest.

A couple of things:

  • If you’ve never installed a similar component or plugin before there may be a delay before all the thumbnails are generated. This is a batch process and takes time. This process should start running in the background automatically once you’ve installed the component and added it to a theme. Check out your sidekiq queue. You may see a lot of queued jobs.
  • it’s necessarily not compatible with just any theme, there is always a possibility there is a clash: it’s only developed and designed with the default theme. Please test it on your site with just the default theme initially. You can adapt its look and feel but that will need to be based on this components special artefacts.
1 Like

Hi Robert,

Thank you for your reply! I’ll test what you suggested in my site :slight_smile:

1 Like

Hi Robert. Im bringing in a table with 3rd party javascript below the header and script breaks the previews when I use it in a component. Any ideas on a workaround?

If there’s an error in that script which is stopping javascript from executing, that could break TLP layout code which requires javascript to be on best behaviour. Look for red errors in your browser console.

1 Like

Hi I enabled the created at date option as you suggested. It somewhat solves the issues. but I think in older plugin the order was set according to the date the post was tagged. Also the problem of older image appearing in front page on any update or reply to the topic makes it hard for a recent image to stay featured. Suppose I make an image featured and if some older post from a year ago gets a new reply the front page will have that post’s featured image. If many odler post get replied then newly tagged featured image go away.

I can’t promise I can improve this behaviour as this is now a Theme Component and I have to rely mostly on what I serialised from Discourse. So date of tagging probably isn’t possible with the data available. It’s partly a result of simplifying this to a Theme Component. I went through this a long time ago and this was the best compromise.

There may be the option to add this additional choice when the plugin sidecar is added. That’s going to need to be a low priority.

I’ll have a brief look at the other issue when I have time, but again suspect this is native Discourse behaviour wrt to images.

1 Like

Added mild(?) highlight effect to thumbnails on hover in Tiles view:

Merge branch ‘beta’ · merefield/discourse-topic-list-previews-theme@fa46a61 (github.com)

Fixed space for new Post notifications: Merge branch 'beta' · merefield/discourse-topic-list-previews-theme@b900ead · GitHub

Pushed a minor improvement to the Theme Sidecar plugin to eliminate links and anchors in the excerpt to help mitigate risk of corrupt layout caused by them: FIX: remove anchors from excerpts too · merefield/discourse-topic-previews@98d3772 (github.com)

There’s an associated setting:

image

3 Likes

I had reported this in the old thread, but I did not have a way to reproduce this issue. Now I understand clearly how to reproduce it.
Middle click on a unread post link from homepage (krita-artists.org) to open it in a new window. Or right click and click on open in new tab from context menu. Then from the newly opened tab go back to home page by clicking on the website logo at the header. When home page loads you will see the featured image component is not loaded. You will have to refresh the page for it to load.

This only happens when you open link in new tab and come back to homepage. If you left click and open the links in same page and come back it loads normally.

1 Like

That’s definitely an interesting edge case! I will see if I can reproduce that when I get some time. Happy holidays!

1 Like

Happy holidays to you too :slight_smile: . It took some time to understand how it can be reproduced.

1 Like

I have trun on topic list excerpts, however in my forum is just don’t have excerpts.

Have you added the Category?

image

Same goes for Tags:

image

I have same issue. Excerts works when sidecar plugin is on, and the component is off. Then I don’t get thumbnails. Thumbnails works if sidecar is off and the component is on.

1 Like

Working fine for me on fresh rebuild (and before). Please check you’ve added the view into the right setting.

Categories are not added by default, so if you want things to appear in all Categories, you have to add all the Categories, etc.

Only the main Discovery Topic Lists are included by default.

@merefield I had. And if there is different categories (tags etc. I haven’t tried) on the component and sidecar, nothing works — header section will be shown three times.

Anyway, only way to get excerps is the sidecar, and thumbnails works only via the component. And if there is thumbnails on, I can’t get excerpts no matter what. Because for me excerps are more important feature than thumbnails (images don’t generate any traffic) I’m happy.

Sure, it could be a conflict with other plugins/components, but I’ve tried that too, and there is not any issues. I’m on iPad right now so it is a bit difficult to find out if there is any JS- or similar errors.

The old plugin worked just fine.

1 Like

Sounds like a conflict to me, potentially.

The duplicated header is very suspicious - look for errors in console when you get chance.

I have it running perfectly on three different sites of my own.

I have try that (add all categories), but just not working.

Probably a clash. Investigate this by creating a Theme with only this component and build back up. Refresh browser with each change or change of setting. It’s likely you are using it with something it is not compatible with. It is not compatible with the News Plugin, for example. Please choose either one but not both.