동적 자리 표시자 사용

수정일 월, 10 3월 시간: 12:05 PM

동적 자리 표시자는 실제 값으로 바꿀 수 있는 변수 집합입니다. Freshdesk는 코드 편집기를 사용하여 고객 포털 테마를 사용자 지정하는 데 사용할 수 있는 플레이스홀더 집합을 제공합니다. Freshdesk 테마에 대한 일반적인 개요와 사용자 지정하는 방법에 대해서는 포털 모양(테마) 사용자 지정하기를 참조하세요.

 

예를 들어 {{portal.articles_count}}를 솔루션 () 태그에 사용하여 포털의 총 솔루션 문서 수를 표시할 수 있습니다.


이 문서 내용:


플레이스홀더 카테고리

Freshdesk는 다음 카테고리에 대한 플레이스홀더를 제공합니다:

  1. 글로벌
  2. 솔루션
  3. 포럼
  4. 첨부 파일
  5. 사용자
  6. 중요 동작에 스니펫 사용
  7. 다국어 포털

글로벌

지원 포털이나 머리글 또는 바닥글 영역에 사용할 수 있는 자리 표시자가 포함되어 있습니다.

portal.namestringName or Title of the portal
portal.languagestringSelected language (English, French etc.)
portal.logo.urlurlDefault or Custom logo from the portal
portal.linkback.urlurlLinkback URL from Freshdesk
portal.contact.infourlPhone number specified in Freshdesk
portal.login.urlurlLogin URL of the support portal (also available to anonymous users)
portal.logout.url  Logout URL of the support portal (also available to anonymous users) 
portal.can.signup.featurebooleanTrue or false based on whether signups are allowed or not
portal.signup.urlurlSignup URL of the support portal
portal.new.ticket.urlurlURL to the new ticket creation page
portal.new.topic.urlurlURL to create a new forum topic
portal.my.topic.url   URL to the user's preferred topic
portal.profile.urlurlURL to the profile of a specific user
recent.articlescollection of articleslist of recently added articles across the portal
language.codestringCurrent language selected on the portal
language.namestringCurrent language selected on the portal
language liststringList of lang


솔루션

고객을 더 잘 돕기 위해 솔루션 문서 전용 동적 자리 표시자가 포함되어 있습니다.

솔루션 카테고리

각 솔루션 카테고리별 플레이스홀더가 포함되어 있습니다:

Placeholder

Return Type

What they mean

category.namestringName of the solution category
category.descriptionstringDescription of the solution category
category.idnumberUnique ID of the solution category
category.urlurlURL pointing to the solution category
category.folderscollection of foldersFolders in the category based on visibility
category.folders_countnumberFolders count in the category based on visibility


솔루션 폴더

솔루션 폴더 전용 플레이스홀더를 포함합니다:

Placeholder

Return Type

What they mean

folder.namestringName of the solution folder
folder.descriptionstringDescription of the solution folder
folder.idnumberUnique ID of the solution folder
folder.urlurlURL pointing to the solution folder
folder.categorysolution categoryCategory in which the solution folder is contained
folder.articlescollection of articlesArticles inside the solution folder
folder.articles_countnumberCount of articles inside the solution folder
 visibility number 


솔루션 문서

솔루션 문서 전용 플레이스 홀더 포함입니다:

Placeholder

Return Type

What they mean

article.titlestringTitle of the solution article
article.thumbs_upnumberNo of thumbs ups for a solution article
article.thumbs_downnumberNo of thumbs downs for a solution article
article.bodyhtmlThe body of the solution article including any formatting and images
article.body_plainstringThe body of the solution article in plain text
article.modified_ondate/timeThe time stamp pointing to when the solution article was last modified
article.created_ondate/timeThe time stamp pointing to when the solution article was originally created
article.idnumberThe Unique ID of the solution article
article.urlurlThe URL pointing to the article
article.tagsarray of objectsThe search tags that have been added to the solution article
article.attachmentsattachmentThe attachment(s) that are present in the solution article
article.cloud_filesarray of cloud filesThe cloud file attachment(s) that are present in the solution article
article.typestringThe type of the article (Permanent or Workaround)
article.folderstringThe folder in which the article is contained
article.categorystringThe category in which the solution article is contained
article.thumbs_up_urlurlThe URL which will increase the thumbs up of the article by one. Need to use a data-method=”put” attribute in the link to work.
article.thumbs_down_urlurlThe URL which will increase the thumbs down of the article by one.  Need to use a data-method=”put” attribute in the link to work.   
portal.recent_articlescollection of articlesThe list of recently added articles from across the portal
 related collection of articles 

포럼

포럼 섹션을 사용자 지정하는 데 사용할 수 있는 플레이스홀더를 포함하고 있습니다.

포럼 카테고리

Placeholder

Return Type

What they mean

forum_category.namestringReturns the name of forum categories
forum_category.descriptionstringReturns the description of forum categories
forum_category.idnumberUnique ID of the forum category
forum_category.urlurlURL pointing to a forum category
forum_category.forumscollection of forumsForums in the category based on visibility
forum_category.forums_countforumForums count in the category based on visibility



특정 포럼

Placeholder

Return Type

What they mean

forum.namestringName of the forum
forum.descriptionstringDescription of the forum
forum.urlurlURL pointing to the forum
forum.idnumberUnique ID of the forum
forum.type_namestringType of the forum (announcement, ideas, problems, questions)
filter.list   
forum.current_topic_filterstringCurrently selected forum filter. Will work only in the respective filters page
forum.allowed_filters
Will return a hash with the below details
  • filter.name translated label of the filter
  • filter.url url link to the filter
forum.forum_categoryforum categoryCategory in which the forum is present
forum.topicslist of topicsList of topics in the forum
forum.topics_countnumberCount of all topics in the forum
forum.planned_topicstopicPlanned topics that are available only for the "ideas" forum
forum.popular_topicstopicList of popular topics
forum.answered_topics topicList of answered topics
forum.unanswered_topicstopicList of unanswered topics
forum.solved_topics topicList of solved
forum.unsolved_topicstopicList of unsolved topics
forum.implemented_topicstopicImplemented topics that are available only for a ideas forum
forum.nottaken_topicstopicNot taken topics that are available only for a ideas forum
forum.inprogresstopicIn progress topics that are available only for a ideas forum
forum.deferredtopicDeferred topics that are available only for a ideas forum


특정 주제

PlaceholderReturn TypeWhat they mean
topic.titlestringTitle of the forum topic
topic.idnumberUnique ID of the forum topic
topic.stampstringStamp of the forum (planned, inprogress, deferred, implemented, not taken) comes only for forum type as ideas
topic.useruserUser who created the topic
topic.created_ondate/timeThe timestamp denoting when the topic was created
topic.votesnumberNo. of votes on a forum topic (can be “I like this idea”, “I have this question” or “I have this problem”)
topic.viewsnumberNo. of views on a forum topic
merge boolean 
topic.lockedbooleanReturns true or false based on whether the topic is locked or not
topic.stickybooleanReturns true or false based on whether the topic is a sticky (that will appear on the top)
topic.answeredbooleanReturns true or false based on whether the topic has been answered to or not
topic.has_commentsbooleanReturns true or false, used to check if the topic has any comments or not
topic.postspostList of posts inside the topic
topic.comment_countnumberNumber of comments that have been created under a topic
topic.first_postpostThe first post in the topic, which was created by the original creator
topic.last_postpostThe last reply of the topic which is the latest in the list
topic.urlurlURL to a particular topic in the forum
topic.forumforumThe forum in which a topic is contained
topic.attachmentsattachmentThe attachments that have been made to a topic
topic.last_post_urlurlURL to the last reply made to the forum topic
topic.voted_by_current_userbooleanForum topics in which users have voted (can be “I like this idea”, “I have this question” or “I have this problem”)
topic.like_urlurlThe URL used to like a particular topic.  Need to use a data-method=”put” attribute in the link to work.
topic.unlike_urlurlThe URL used to unlike a particular topic.  Need to use a data-method=”put” attribute in the link to work.
my_topicsstringList of topics that have been created or currently being followed by the user
my_topics_countnumberNumber of topics that have been created or currently being followed by the user


주제에 대한 특정 글

PlaceholderReturn TypeWhat they mean
post.idnumberUnique ID of the post
post.bodystringPlain text version of the post
post.body_htmlhtmlHtml version of the post
post.created_ondate/timeTime stamp referring to when the post was originally created
post.useruserInformation about the user who created the post
post.topictopicThe topic in which the post is contained
post.answerbooleanReturns true or false based on whether there can be answers on the post or not
post.attachmentsattachmentThe attachment(s) that are available in the post
post.urlurlThe unique URL of the post  

첨부파일

솔루션 및 포럼에서 페이지(및 사용자)가 첨부파일에 액세스하는 방식을 사용자 지정할 수 있습니다. 예를 들어 솔루션의 개요와 함께 첫 번째 이미지 첨부 파일의 썸네일을 자동으로 표시하는 레이아웃을 만들 수 있습니다. 모든 이미지 첨부 파일은 해당 섬네일도 자동으로 만들어집니다.

Placeholder

Return Type

What they mean

attachment.urlurlURL to the attachment
attachment.thumbnailurlPreview image of the attachment file
attachment.extensionstringThe file extension of the attachment (.doc, .jpg etc)
attachment.filenamestringThe filename of the attachment without the extension
attachment.sizenumberFile size of the attachment
attachment.is_imagebooleanReturns true or false based on whether the attachment is an image or not  

사용자

사용자와 포털 액세스 방법에 관한 사항을 정의하기 위한 자리 표시자를 제공합니다. 사용자는 Freshdesk에서 요청자뿐만 아니라 고객도 모두 지칭한다는 점을 기억하세요.

Placeholder

Return Type

What they mean

portal.user.namestringFull Name of the user using the support portal
portal.user.firstname
portal.user.lasttname
string Returns the first name and last name of the user respectively 
portal.user.emailemailEmail address of the user
portal.user.phonenumberPhone number of the user
portal.user.mobilenumberMobile Number of the user
portal.user.job_titlestringJob title of the user
portal.user.time_zonestringThe time zone that has been configured in the user’s profile
portal.user.profile_urlurlThe URL pointing to the profile of the user
portal.user.idnumberUnique ID of the user
portal.user.company_namestringCompany name that has been specified in the user’s profile
portal.user.is_agentbooleanReturns true or false based on whether the user is an agent or not

중요한 동작에 코드 조각 사용하기

이미 만들어진 코드 조각을 사용하여 지원 작업을 개선할 수 있습니다. 예를 들어 새 티켓 양식의 레이아웃을 업데이트하는 대신 해당 스니펫을 포함하여 동작을 개선할 수 있습니다.


포털 와이드 스니펫

Placeholder

Return Type

What they mean

snippet new_ticket_formhtmlIncludes the new ticket form into the page
snippet new_topic_formhtmlIncludes the new topic form into the page
snippet signup_formhtmlIncludes the signup form into the page
snippet login_formhtml

Placeholder for Language Switcher 


In the portal, users have the option to switch between the supported languages by using the language switcher.

Includes the login form into the page
snippet forgot_password_formhtmlIncludes the forgot password form into the page
snippet search_formhtmlIncludes the search from into the page


토픽 상세 페이지 스니펫

Placeholder

Return Type

What they mean

snippet topic_replyhtmlIncludes the topic reply form into the page
snippet topic_votehtmlIncludes the voting buttons into the page  

다국어 포털

포털에서 다국어 지원을 위해 다음의 추가 동적 자리 표시자와 코드 스니펫을 사용할 수 있습니다.


Placeholder for Language Switcher: {{ portal | language_list }}

포털에 언어 전환기를 생성합니다.


포털이 여러 언어를 지원하도록 구성된 경우 고객은 고객 포털에서 언어 전환기 옵션을 사용할 수 있습니다. {{ portal | welcome_navigation }}을 이미 사용할 수 있는 경우 플레이스홀더가 적절한 스타일과 함께 자동으로 포함됩니다. 사용할 수 없는 경우 언어 전환기에 코드를 수동으로 추가하세요.

: 스타일이 브랜드와 일치하는지 확인하려면 게시하기 전에 항상 초안 모드에서 변경 사항을 확인하는 것이 좋습니다.



이를 사용하여 사용자가 선택한 언어를 기준으로 페이지 헤더, 제목, 바닥글 등 지원 포털의 하드코딩된 텍스트를 번역할 수 있습니다.

예를 들어 포털 헤더 텍스트가 "안녕하세요, 무엇을 도와드릴까요?"인 경우 현재 포털 언어 선택에 따라 {{ portal.current_language}를 사용하여 번역된 텍스트를 추가할 수 있습니다.code }} 또는 {{ portal.current_language.name }}.


포털 사용자 지정 코드에 사용해야 하는 코드 예시는 다음과 같습니다.

<h1>
{% if portal.current_language.code == "en" %}
저희가 도와드리겠습니다!
{% elsif portal.current_language.code == "fr" %}
저희가 도와드리겠습니다!
{% elsif portal.current_language.code == "de" %}
도와드리겠습니다!
{% endif %}
</h1>

동적 자리 표시자 보기 및 사용

자리 표시자에 액세스하고 사용하려면 다음을 수행합니다.

  1. 관리   포털로 이동하여 포털 옆에 있는 수정 아이콘을 클릭합니다.
  2.  표시 탭으로 전환합니다. 현재 라이브 테마 및 사용 가능한 다른 테마가 표시됩니다. 테마 편집을 클릭합니다. 
  3.  페이지 탭으로 전환합니다. 코드 편집기에서 다양한 포털 페이지와 해당 CSS 코드를 볼 수 있습니다.
  4. 추가 사용자 지정을 위해 플레이스홀더를 사용하려면 코드 편집기에서 플레이스홀더 삽입 버튼을 클릭합니다. 동적 플레이스홀더의 다양한 카테고리를 확인할 수 있습니다.
  5. 이를 사용하여 고객 포털을 개인화할 수 있습니다. 일단 를 완료했으면 게시를 클릭합니다. 

아티클이 유용했나요?

훌륭합니다!

피드백을 제공해 주셔서 감사합니다.

도움이 되지 못해 죄송합니다!

피드백을 제공해 주셔서 감사합니다.

아티클을 개선할 수 있는 방법을 알려주세요!

최소 하나의 이유를 선택하세요
CAPTCHA 확인이 필요합니다.

피드백 전송

소중한 의견을 수렴하여 아티클을 개선하도록 노력하겠습니다.