Yes. If you use the below theme component and not the plugin.
https://github.com/merefield/discourse-topic-list-previews-theme
Yes. If you use the below theme component and not the plugin.
https://github.com/merefield/discourse-topic-list-previews-theme
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.
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 Then Developerâs guide to Discourse Themes
Use the Browser Inspector to find the right bits. Experiment. Hereâs the guide for Firefox: Page Inspector - Firefox Developer Tools | MDN
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.
@merefield Itâs update time! Are there any known issues?
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.
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.
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.
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!)
{{#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!
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!
The update went without a problem
Yup, I released a mid-month fix for a break and weâve been lucky the rest of it
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.
The same requirement for me, too:
https://meta.discourse.org/t/topic-list-thumbnails-theme-component/150602/105?u=terrapop
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 ⌠Feature Request
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.
Are you on latest discourse?
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.
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.
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.
Also do the same steps for the ratings plugin.