Topic List Previews Theme Component

Sadly no, they’re still present on new browsers/incognito as well.

2 Likes

Thanks, repro’d, I’ll revert with a fix at some point, thanks for the feedback.

1 Like

IMPORTANT: Name Changes & Move of Theme Component and Sidecar Plugin.

I’ve now moved the sidecar plugin to:

Sidecar Plugin now back at the Pavilion Github Org: https://github.com/paviliondev/discourse-topic-previews-sidecar

A reminder this adds the following features to the base TC:

  • ‘actions’ (bookmarking and liking from Topic List)
  • Thumbnail Picker in the Topic Meta Editor.
  • Optionally suppresses links in excerpts to make them look a lot better

The correct code is now on the master branch. NB the name change

This Theme Component has now moved to : paviliondev/discourse-tc-topic-list-previews: Enriches the content and layout of topic lists (github.com): https://github.com/paviliondev/discourse-tc-topic-list-previews

NB the name change as well as the move!!

The plugin backend should keep the settings as there is no change to settings names. The front end TC should also: there should be no need to reinstall or change the TC front end. GitHub will just redirect.

This project to move to a TC began as an experimental side project but has ultimately deprecated the original pavilion code, so I’ve replaced it.

I will no longer be maintaining these at their original locations. You might find GitHub maps the changes for you apart from the branch move, so remove the -b at least.

@Canapin

6 Likes

Added Compatibility with breaking changes in core to the Bookmarking API:

You can now bookmark again from the Topic List (requires sidecar plugin).

I’ve also merged in changes from @Canapin to optionally include link text content in excerpts whilst also ensuring long links don’t corrupt the excerpts:

Thanks @Canapin !

3 Likes

What do you mean by “NB the name change”?
How do I use the new repo URLs while keeping my settings?

1 Like

Updated the post with more clarity on that topic.

2 Likes

any way to get thumbnails on the “desktop category page style” setting? On the home or categories page, you can show Latest or Top, but it doesn’t have any thumbnails.

2 Likes

@Canapin asked me this recently: Topic List Previews Theme Component - #104 by Canapin

You can see my response, it’s not currently supported.

4 Likes

I abandoned the Graceful Theme for the Default one (but with the Graceful color scheme).

The rendering is good.

Many thanks for the quick assitance.

2 Likes

Ah, that’s a detail you left out :+1:

Yes, I doubt many Theme authors test against TLP. Caveat emptor. You can’t always guarantee compatibility.

2 Likes

Hello,
How can we dissable effect for mobile? I don’t insert lasted-mobile in " topic list thumbnails topic lists" Setup but thumbnail unstill display in Mobile interface

At the same time do i use
MD Topic List Mobile component.
Thank you!

1 Like

You can’t always safely use two topic list theme components at the same time.

I don’t guarantee compatibility with other components. If they work together, great.

Does the issue resolve if you disable the other one?

Remember to refresh your page if you change settings.

2 Likes

Hi Robert, thank you for this component. I enabled it for only a category but on mobile I’m seeing this weird issue:

Component disabled:

Component enabled:

Why is there a weird spacing between the avatar and the thread name?
Like I said, nothing related to the component is enabled for that category.

2 Likes

Because that space is normally used for thumbnails which are usually wider than avatars. If you enable thumbnails on mobile and your OP has a picture you will see it.

The idea was to keep a consistent vertical border for the excerpt regardless if there is a thumbnail or not so you eye is not perturbed scanning down the topic list.

Very topical as I’ve been discussing with a community member how else we might handle this …

1 Like

Hmm I see, but I’m only using the thumbnails and excerpt for one specific category, not even for topic lists. Is there a way to disable this spacing, maybe using CSS? Thank you.

Why don’t you have a go at working that out using the browser inspector? I’m afraid I don’t have the bandwidth to support bespoke installs …

But I will keep this in mind if ever this is tweaked. If a Thumbnail is not specified for a particular view, then it should use less whitespace.

1 Like

Took me some trial and error but I found out what CSS to edit.
Adding this to CSS Mobile reduces the margin from 95px to 55px.

.mobile-view .topic-list .right {
    margin-left: 55px;
}
4 Likes

Sorry to bother again but I’ve noticed this error in the Browser Console when the component is enabled:

XHRGET https://radixtalk.com/tag/.json
[HTTP/1.1 404 Not Found 0ms]

Uncaught Error: Not Found
    Ember 3
    trigger rsvp.js:197
    _onError rsvp.js:1030
    invoke backburner.js:351
    flush backburner.js:241
    flush backburner.js:447
    _end backburner.js:1001
    end backburner.js:731
    _run backburner.js:1056
    run backburner.js:775
    u Ember
    error ajax.js:149
    jQuery 6
    g ajax.js:175
    x rsvp.js:522
    x rsvp.js:1023
    m ajax.js:188
    n topic-list.js:31
    getAndRemove preload-store.js:32
    x rsvp.js:522
    x rsvp.js:1023
    getAndRemove preload-store.js:31
    find topic-list.js:39
    findFiltered store.js:98
    setFeaturedTopics aa9f823743044249955a7b22e35bc2f20fa52fcc.js:915
    _findCategoriesAndTopics aa9f823743044249955a7b22e35bc2f20fa52fcc.js:938
    b rsvp.js:495
    g rsvp.js:478
    invoke backburner.js:353
    flush backburner.js:241
    flush backburner.js:447
    _end backburner.js:1001
    _boundAutorunEnd backburner.js:650
    promise callback*n/< backburner.js:28
    a Ember
    _scheduleAutorun backburner.js:1220
    _ensureInstance backburner.js:1208
    schedule backburner.js:807
    Ember 6
    <anonymous> start-app.js:4
    <anonymous> discourse-boot.js:31
    <anonymous> discourse-boot.js:32

Could it be some component setting that’s causing this 404 error?

1 Like

We are outside the free support period, but happy to look at that later in the next support phase.

In the meantime I cannot reproduce that, do you have featured images enabled?

1 Like

I don’t think I do. Here’s my settings:



The rest are all stock.

We are outside the free support period, but happy to look at that later in the next support phase.

Thanks, no hurry! It’s not an important bug.

1 Like