Created
October 30, 2012 15:27
-
-
Save DeskSupport/3980924 to your computer and use it in GitHub Desktop.
Content Review Template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Create a new Customer Help Center in the Channel Tab of the Desk.com Admin. | |
2. Choose the advanced template (if you are not already using advanced templates, this adds a $29 per month feature). | |
3. Replace the Page (Index) template with the content below. | |
4. Use the "Preview" link of the template to view all the content on one page. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style> | |
#support-main .dashboard .topic li { | |
background:none; | |
} | |
#support-main h3 { | |
background: #DEDEDE; | |
} | |
</style> | |
<div id="desk-external-variables-page_index" class="desk-external-variables"> | |
<div id="system-snippets-just_moderated">{{just_moderated}}</div> | |
</div> | |
{{ search_form_begin }} | |
<div class='outer'> | |
<div class='inner'> | |
<input type='text' id='q' name='q' maxlength='100' value='' /> | |
{{template_form_params}} | |
<div id='question-mask' class='question-big'>{{system.snippets.have_a_question}}</div> | |
<input type='submit' id='support-search-submit' value='{{system.snippets.search}}' /> | |
</div> | |
</div> | |
{{ search_form_end }} | |
<div id='support-main'> | |
{% if just_moderated %} | |
<div id="modal-screen"> </div> | |
<div id="modal"> | |
<div class="inner"> | |
<div class="main"> | |
<h1>{{system.snippets.your_post_submitted}}</h1> | |
<p class='subheader'> | |
{{system.snippets.not_shown_until_reviewed}} | |
</p> | |
<div id='form'> | |
<div class='input-button'> | |
<input id='moderation_okay_button' name='commit' type='submit' value='{{system.snippets.okay}}' /> | |
<img alt='Ajax-loader-small' id='question_submit_spinner' src='{{ "/images/ajax-loader-small.gif" | portal_image_url: image_asset_host }}' style='display: none; margin: 7px 0 0 5px; position: absolute;'/> | |
</div> | |
</div> | |
</div> | |
</div> | |
</div> | |
{% endif %} | |
<div class='support-body'> | |
<div class='content dashboard'> | |
{% if topics_count > 0 %} | |
{% for topic in topics %} | |
<div class='topic topic{{ topic.id }}'> | |
<h4>{{ topic.name }}</h4> | |
{% if topic.article_count > 0 %} | |
<ul style="color:black;"> | |
{% for article in topic.articles %} | |
<li> | |
{%capture editlink%}{{ article.public_url|replace:'/customer/portal/articles/','https://{{site.subdomain}}.desk.com/admin/content-management/articles/' }}{% endcapture %} | |
<h3>{{ article.subject_plain }}(<a href="https://{{site.subdomain}}.desk.com/admin/content-management/articles/{{article.id}}/edit" target="kb_admin" style="font-size:90%;">Edit Article {{article.id}}</a>)</h3> | |
<div style="padding-left:30px;"> | |
{{article.body}} | |
</div> | |
</li> | |
{% endfor %} | |
</ul> | |
{% endif %} | |
</div> | |
{% endfor %} | |
{% else %} | |
<h4>{{system.snippets.no_topics_avail}}</h4> | |
{% endif %} | |
</div> | |
</div> | |
<!-- | |
*************** | |
The following attribution needs to remain as is in terms of wording with the appropriate link back to desk.com as per our terms of service: http://www.desk.com/terms | |
If you would like, you may change the location or the styling to better match your site, but the content and the link must remain in the template and visible to end users. | |
**************** | |
--> | |
<div id='footer'> | |
{{ footer_content }} | |
<br/> | |
<a href='http://www.desk.com'>Customer service software</a> powered by Desk.com | |
</div> | |
</div> | |
<script type="text/javascript" src="{{desk_javascript_host}}portal/desk.portal.body.page_index.js"></script> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment