Skip to content

Commit 1993843

Browse files
authored
Merge pull request #102 from telerik/stoskov/change-support-link
Support custom Contact Support link.
2 parents cb42ea1 + 5ac2272 commit 1993843

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

_layouts/api-index.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,11 @@ <h1>{{ page.title }}</h1>
117117
<div class="support-info-area">
118118
<span class="additional-info-content">Not finding the help you need?</span>
119119
<div>
120+
{% if site.contact_support_url %}
121+
<a class="btn btn-action" href='{{ site.contact_support_url }}' target="_blank" onclick="trackItemFromCurrentPage('docs-contact-support', '{{ site.product }}')">Contact support</a>
122+
{% else %}
120123
<a class="btn btn-action" href='https://www.telerik.com/account/support-tickets?pid={{ site.data.support_products[site.product] }}' target="_blank" onclick="trackItemFromCurrentPage('docs-contact-support', '{{ site.product }}')">Contact support</a>
124+
{% endif %}
121125
</div>
122126
{% if site.edit_repo_url and page.is_search_page != true and page.editable != false %}
123127
<a class="btn-edit-article" href="{{ site.edit_repo_url }}/{{ page.parent_path | replace: '.html','' }}.md" target="_blank">Improve this article</a>

_layouts/documentation.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,11 @@ <h1>{{ page.title }}</h1>
103103
<div class="support-info-area">
104104
<span class="additional-info-content">Not finding the help you need?</span>
105105
<div>
106+
{% if site.contact_support_url %}
107+
<a class="btn btn-action" href='{{ site.contact_support_url }}' target="_blank" onclick="trackItemFromCurrentPage('docs-contact-support', '{{ site.product }}')">Contact support</a>
108+
{% else %}
106109
<a class="btn btn-action" href='https://www.telerik.com/account/support-tickets?pid={{ site.data.support_products[site.product] }}' target="_blank" onclick="trackItemFromCurrentPage('docs-contact-support', '{{ site.product }}')">Contact support</a>
110+
{% endif %}
107111
</div>
108112
{% if site.edit_repo_url and page.is_search_page != true and page.editable != false %}
109113
<a class="btn-edit-article" href="{{ site.edit_repo_url }}/{{ page.path | replace: '.md','' }}.md" target="_blank">Improve this article</a>

0 commit comments

Comments
 (0)