Order tags by tag group

Hi,

How can multiple tags in a topic be ordered? I have two tag groups: “Verified” and “Other Tags”. Can I order them from verified to other in topics?

I’d like it to be ordered like the 2nd topic in the picture. Right now tags are ordered by the order the user selects them when creating a topic.

It’s not possible because we don’t add any classes or attributes to designate which tag-group a tag belongs to.

We already have data-tag-name='example-tag'… it might also be useful to have data-tag-group='example-group'if a tag is in a group (I’m not sure how difficult that change would be though). Then you’d be able to target tag groups with CSS.

@awesomerobot

태그 이름을 대상으로 할 때 CSS로 이를 달성하는 가장 좋은 방법은 무엇일까요?

우리는 간단한 float: left를 사용했지만, 이는 밀려난 태그의 정렬을 깨뜨리며, 정렬을 유지하기 위해 여러 곳에서 어색한 픽셀 관리가 필요합니다.

특정 태그가 먼저 표시되도록 순서를 변경해야 했는데, 다음과 같이 처리할 수 있었습니다:

.discourse-tags .discourse-tag[data-tag-name=yourtag] {
    order: -1;
}