特色瓷砖

I first want to say thank you for this amazing component. It has taken our forum up a few notches visually and a brilliant way to revive old threads without the need for staff to bump them to keep them fixable.

I have a question though and I may be missing a simple solution to this, but is it possible to remove the OPs avatar from the tile… Or preferably just remove the clickablility of the OPs avatar?

Thank you for this David, I am trying to get display-on-categories and scope-to-category working but I can only get the featured tiles to display on Latest and Categories home page, not the individual categories. Any idea what I’m doing wrong here, below are my settings. I have tried this with all other TC’s disabled and in safe mode with unofficial plugins disabled. I don’t see anything in the console or logs related to this.

Settings screenshot

Also, is there any way to add spacing between the images?

1 个赞

IS there a wat to show 4 tiles in desktop and just 1 or 2 on mobile? It doesn’t look so good on it. Thanks!

Do you have editors-pick topics in every individual category?

You could do this using CSS, yes. Something like

.featured-tiles-container {
    gap: 1em;
}

This could also be done with CSS. To hide the 3rd, 4th and 5th square on mobile, you could do something like:

.mobile-view .featured-tiles-container > .featured-tile:nth-child(2) ~ .featured-tile {
    display: none;
}
3 个赞

Yes, I even tried setting it to only one category where the tag is used and it does not show up in that category. I tried different tags that are not part of tag groups, a category without restricted tags, but nothing seems to work. I also tried another site I have that is much simpler, doesn’t have TLP installed, etc. and it doesn’t work there either, even tried featuring a category rather than a tag, still doesn’t show up in any categories.

This works perfectly in firefox and chrome, but not safari. Any other ideas?

Also, a small feature request to have a title for the featured images, because how are people supposed to know what these images are? I know, I know, submit a PR, but trust me you wouldn’t want me to :grin: Just something like this:

1 个赞

Same here. I’m trying out the component on a new instance, so there’s not much else to disable. The featured tiles only show on Latest and Categories.

2 个赞

Hey @david

In my tests for some existing topics the image is not appearing. I am running on latest test-passed.
What I tried so far:

  • put the image into the first line of the first post
  • renew HTML of the first post
  • removing and re-adding the featured tag
  • issue persists in theme preview as well

Any ideas?

I have this exact same issue. Were you able to fix it?

Any reason why this does not show on category pages even tho the option for it is ticked?

1 个赞

我也遇到同样的问题:它没有显示在类别页面上,即使它是唯一活动的组件。你能帮忙吗 @david

1 个赞

我已经更新了分类页面,应该可以解决这个问题,请尝试一下!

5 个赞

Kris,它奏效了,你太棒了!

1 个赞

有人知道如何在 .list-controls 组件的上方或下方插入文本吗?我真的需要在上方添加文本来解释这些图片是什么。下图中的红线标出了我需要的位置。谢谢!

您始终可以使用 beforeafter 选择器在您的网站上插入内容,以获得快速解决方案。例如:

.featured-tiles::before {
  content: "Hello There";
}
1 个赞

谢谢 Nolo,暂时可以!如果能添加一个 URL 就更好了,但这样也足够了。感谢您的帮助。

1 个赞

太棒了,@davidkingham!!!太美了!!!

1 个赞

这看起来真的很不错……在它工作的时候。
在我们的云端 Discourse 站点上,只有选择一个标签时它才有效。选择多个标签时,它会显示一个空的横幅行。

更新:有时图片不会显示在主页上,但进入带有所选标签主题的类别会有帮助。返回主页后,图片会显示在横幅上。

有其他人可以尝试并确认吗?

1 个赞


是的,我也遇到了同样的问题。没有图片的那些甚至没有“特色”标签

功能请求建议

EDiT 看起来应该可以按我描述的那样工作。 :man_facepalming:

但在 Air 主题上,它显示为空白,如下所示。我哪里做错了?如果需要,我可以私信您网站链接。

我有 2 个主题,其首帖包含图片。图片在帖子开头。

我最近安装了您的主题组件,我认为添加以下两个功能会很棒:

  1. 上一个和下一个按钮
    我参考了这段代码,但不知道如何将其添加到您的自定义设置中

https://stackoverflow.com/questions/65833297/add-prev-next-buttons-to-scroll-container-with-css-and-jquery

  1. 允许用户在查看完所有先前新闻后加载其他内容

这有助于用户在桌面和移动设备上获得最佳体验,同时熟悉社交网络上的故事应用程序,而且我看到许多文章都提到了谷歌目前对故事内容非常感兴趣。

这是我在桌面和移动设备上的自定义设置


https://businesslab.vn 查看

3 个赞