언급(mention)의 표시 방식을 @usernamefieldhere 대신 @fullnamefieldhere로 바꾸려면 어떻게 해야 하나요?
예를 들어 @OverseersMight가 @ John Doe로 표시되도록 하는 것입니다. (제 이름이 John Doe라고 가정했을 때)
존경하는 john 님, 실수로 언급하게 되어 죄송합니다…
Don
8월 22, 2021, 4:45오전
2
안녕하세요,
현재 Discourse에는 이러한 종류의 옵션이 없지만, 아래 주제가 도움이 될 수 있습니다
It would look more elegent in posts if @leo (for example) was presented as (or at least the user had the option to present it as) “Leo” or “Leo McArdle”.
pfaffman
(Jay Pfaffman)
8월 22, 2021, 1:17오후
3
사용자 이름을 사용하지 않으려면, 사용자 이름을 이름_성(first_last) 형식으로 설정해 주는 플러그인을 설치하는 것이 좋다고 생각합니다.
이 플러그인에 대한 링크가 있을까요 @pfaffman ? 이것도 찾았는데,
@nachof I found a way to make it work: Use fullnames for mentions · GitHub by overriding _show() in component:user-card-contents. I’m guessing the leading underscore means we probably shouldn’t override it? But it seems to work: [image]
Perhaps there needs to be an entry point to optionally get the username from $target? Anyway, this was really a blocker from my POV to deploying to my wider community. Time to roll ahead
이것도 작동하는 것 같습니다.
이 커뮤니티에 이렇게 훌륭한 기여를 해 주셔서 감사합니다.
pfaffman
(Jay Pfaffman)
8월 22, 2021, 9:07오후
5
와. 멋지네요. 존재하지 않는 플러그인을 필요로 하지 않으므로 제 해결책보다 더 나은 방법입니다. Ember/JavaScript를 활용한 해결책을 떠올리는 데는 좀 서투른 편이에요. 잘하셨습니다!