여러 개의 사용자 지정 프로필 링크

(official 컴포넌트인 "Custom Profile Link"과 혼동하지 마세요)

:information_source: 요약 사용자 프로필에 사용자 지정 링크를 추가합니다
:hammer_and_wrench: 저장소 GitHub - Firepup6500/discourse-custom-profile-link: Displays a custom "user field" as a link on a user's discourse profile · GitHub
:question: 설치 가이드 테마 또는 테마 컴포넌트 설치 방법
:open_book: Discourse 테마를 처음 사용하시나요? Discourse 테마 사용 입문가 가이드

이 테마 컴포넌트 설치

사용자 프로필에 사용자 지정 링크를 추가할 수 있게 해주는 컴포넌트입니다.

사용자 프로필:

사용자 카드:

설정:

  • custom_profile_link_user_field_ids - 외부 사용자 이름 필드로 사용할 사용자 필드 목록
  • custom_profile_link_labels - 링크에 사용할 라벨 목록, custom_profile_link_user_field_ids의 각 id마다 하나씩
  • custom_profile_link_prefixes - 링크에 사용할 URL 접두사 목록, custom_profile_link_user_field_ids의 각 id마다 하나씩
  • custom_profile_link_orgs - label,id-of-name-field,id-of-url-field 형식을 따르는 “조직” 스타일 링크 목록
  • custom_profile_link_debug_mode - 컴포넌트 관련 문제가 있을 경우를 대비하여 일부 디버그 로그를 활성화합니다

참고:

  1. custom_profile_link_user_field_ids, custom_profile_link_labels, custom_profile_link_prefixes 설정의 목록은 모두 동일한 길이어야 하며, 그렇지 않으면 문제가 발생할 수 있습니다.
  2. custom_profile_link_user_field_ids 필드에서 숫자에 밑줄을 추가하여 중복된 id를 정의할 수 있습니다.
  3. 설정이 더 쉬운 단일 링크만 원하신다면 official Custom Profile Link 테마 컴포넌트를 사용해야 합니다.
9개의 좋아요

컴포넌트를 업데이트했습니다(discourse-gjs-codemod를 사용하여 .hbs 및 .js 파일을 .gjs로 변환했습니다).
풀 리퀘스트가 검토되는 동안, 임시 포크와 gjs-migration 브랜치를 사용하여 테스트할 수 있습니다: GitHub - newbit1337/discourse-custom-profile-link at gjs-migration · GitHub 풀 리퀘스트가 승인될 때까지 해당 브랜치는 계속 유지됩니다.

newbit1337

2개의 좋아요