추천 주제

:discourse2: 요약 카드 또는 목록 레이아웃에서 태그별로 주제를 강조 표시합니다
:hammer_and_wrench: 저장소 링크 Manuel Kostka / Discourse / Components / Featured Topics · GitLab
:open_book: 디스코urse 테마를 처음 사용하시나요? 디스코urse 테마 사용 입문가 가이드

이 테마 컴포넌트 설치

카드 뷰


목록 뷰


설정


다른 옵션 외에도, 주제를 특징짓는 여러 태그를 선택하고 두 가지 레이아웃 옵션 중 하나를 선택할 수 있습니다: 카드 또는 목록 (사용자 정의 스타일을 추가하려면 없음 선택).

자세한 정보와 컴포넌트 템플릿은 README를 참고하세요.

36개의 좋아요

I really like it! Maybe a dumb question, but where do the images have to be stored for it to pull them?

2개의 좋아요

Thanks! The image is pulled from the first post of the topic.

2개의 좋아요

Honestly, I would love a Customization > Theme component like this, but for trending topics (that kind of functionality would probably require a Customization > Plugin though).

Maybe it could be implemented much more easily once Discourse works on the “hot” category topic sorting option in version 2.9? :thinking:

As for the option to show a tag in a featured card, how does it handle a topic with multiple tags? Do tags even show up on featured cards in the mobile view?

2개의 좋아요

Card content is the same on mobile and desktop, just on mobile the cards wrap the content and don’t have a set height. If you have multiple featured tags on the same topic, cards will show the tag that is shown first on the default tag list. I believe this is by alphabetical order.

Regards trending topics, you can pick the list algorithm just as on the Featured Tiles component. Right now these algorithms include latest and various top selections:

How would trending be different from top-daily or top-weekly? In any case, when there’s a new sorting and filter algorithm in Discourse core, as the “hot” one mentioned, it should work on the component as well.

1개의 좋아요

Well, it wouldn’t have to be limited to a certain time period. Trending topics could be from an hour ago, a day ago, a week ago, etc…

I wish I could articulate myself… :sweat_smile:

Also, is it possible to have multiple rows of featured cards?

2개의 좋아요

This component is just showing one row of cards on desktop. And as many cards as you like in one column on mobile (there’s a maximum topic count setting).

Showing more rows on desktop is easily possible if you write custom CSS for the component. But that’s not a use case I will support with the component as such, as I believe it will need a custom layout anyways.

1개의 좋아요

Okay, that’s fair enough. :+1:

I was looking to tie this Customization > Theme component in with a concept that’s being worked on.

Also, the “hot” category topic sorting option I mentioned earlier already (sort of) exists in the form of a #plugin:broken-plugin.

1개의 좋아요

Okay I see.. you just made me change my wording :wink: I’ve written feed twice, but I changed it to column. The goal of this component is to feature specific selected topics. I don’t doubt you could also make it work more like a dynamic feed. But if that’s your goal, I’d rather just style the existing list views to get there. You know, just use a component like Topic List Previews or Topic List Thumbnails and style the list items more like cards. Working directly on the lists is all integrated with navigational elements and filters on Discourse. You won’t get that with this component.

1개의 좋아요

Yeah, true. I’m just trying to look at all the options I have at my disposal. This topic was posted just as I was browsing Discourse Meta, so it ended up catching my attention.

2개의 좋아요

Hmmm, not really showing a thumbnail :frowning:

1개의 좋아요

Hmm, I only get his look when I de-select all contents :upside_down_face:

Did you try different browsers? If it’s not a browser issue (and if it is, please let me know your setup) I could inspect the CSS on your site. But you’d need to share your url, here on on a pm.

1개의 좋아요

Is this component still working?

Why shouldn’t it working anymore? It’s not marked as broken or something and it’s only 3 months old.

4개의 좋아요

Loving this component, thank you so much! :tada:

What’d be great is, if you could have a “pinned” featured topic (i.e. the “Welcome to this Forum” topic), that is always shown, even if topics are randomly chosen from #featured. I think that would be really awesome, not just for my use case but also many others. Could that be implemented?

1개의 좋아요

Help @manuel ?
I love this component! But I have a small problem. :point_down:

On my admin account, I can see the cards great.

On my “regular” user account, I have dead space and the cards don’t show.

Any assistance or suggestions would be helpful before I have to figure something else out :smiley:

1개의 좋아요

Looks like you use a tag that’s not visible to regular users?

You can hide tags from showing on the cards through the component settings. But the tag itself has to be visible to the group that should see the tagged topic as a featured card.

3개의 좋아요

:woman_facepalming:
That fixed it.
I just edited my tag groups and thought I would hide that one so no one knew it was there but admin. Thank you!!

1개의 좋아요

Thanks for the suggestion @diabolicvincent! Though I guess I won’t implement this as a feature. One reason is that (as mentioned on the credits), I didn’t program the logic of this component. It’s quite complex already for my taste and I don’t want to mess with it myself.

More generally, philosophically, conceptually.. :nerd_face: I actually believe it’s better ui design when official content is easily distinguishable from user-generated one. In that regard I’m already not a fan of pinning topics within an otherwise dynamic list of user topics.

Is there any way to auto show latest posts without using a tag? I don’t want to use a tag to manually push the posts to the featured section.