1. Kayako Download customers: we will continue to develop and support Kayako Download beyond July 2017, alongside the new Kayako for existing customers.

    Find out more.

  2. The forum you are viewing relates to Kayako Classic. If you signed up or upgraded to the new Kayako (after the 4th July 2016), the information in this thread may not apply to you. You can visit the forums for the new Kayako here.

KB on Home Page

Discussion in 'Using Kayako Classic' started by Justin White, Aug 10, 2018 at 10:57 PM.

  1. Justin White

    Justin White Member

    I am trying to list the knowledge base articles list on the home page of the support center in Classic Kayako.

    I paste the following code copied from the "knowledgebaselist" template onto "homeindex" but nothing happens.

    HELP PLEASE!

    <div class="boxcontainer">
    <div class="boxcontainerlabel"><{if $_settings[kb_enrss] == '1'}><div style="float: right;"><a href="<{$_swiftPath}>rss/index.php?/Knowledgebase/Feed/Index/<{$_knowledgebaseCategoryID}>" title="<{$_language[rssfeed]}>" target="_blank"><i class="fa fa-rss-color fa-rss-square" aria-hidden="true" alt="<{$_language[rssfeed]}>"></i></a></div><{/if}><{$_language[knowledgebase]}> <{if $_parentCategoryList != false}>: <{foreach key=_categoryID name=_parentCategory item=_categoryItem from=$_parentCategoryList}><{if $.foreach._parentCategory.last}><{$_categoryItem}><{else}><a href="<{$_baseName}><{$_templateGroupPrefix}>/Knowledgebase/List/Index/<{$_categoryID}>"><{$_categoryItem}></a> &gt; <{/if}> <{/foreach}> <{/if}> </div>

    <div class="boxcontainercontent">
    <{if $_showEmptyViewWarning == true}>
    <div class="infotextcontainer">
    <{$_language[noinfoinview]}>
    </div>
    <{/if}>

    <{if $_hasNoCategories == false }>
    <div class="list-table">
    <table cellpadding="0" cellspacing="0" width="100%" border="0">
    <tr>
    <{foreach key=_kbCategoryID item=_knowledgebaseCategory from=$_knowledgebaseCategoryListContainer}>
    <{if $_knowledgebaseCategory[jumptorow] == true}>
    </tr><tr>
    <{/if}>

    <{if $_knowledgebaseCategory[title] == false}>
    <td class="hide">&nbsp;</td>
    <{else}>
    <td width="<{$_knowledgebaseCategory[tdwidth]}>%" align="left" valign="top">
    <div class="kbcategorytitlecontainer"><div class="kbcategorytitle" onclick="javascript: window.location.href='<{$_baseName}><{$_templateGroupPrefix}>/Knowledgebase/List/Index/<{$_knowledgebaseCategory[kbcategoryid]}>/<{$_knowledgebaseCategory[seotitle]}>';"><span class="kbcategorycount"><{if $_knowledgebaseCategory[totalarticles] > 0}>(<{$_knowledgebaseCategory[totalarticles]}>)<{/if}></span><a href="<{$_baseName}><{$_templateGroupPrefix}>/Knowledgebase/List/Index/<{$_knowledgebaseCategory[kbcategoryid]}>/<{$_knowledgebaseCategory[seotitle]}>"><{$_knowledgebaseCategory[title]}></a></div>
    <{foreach key=_kbArticleID item=_knowledgebaseArticle from=$_knowledgebaseCategory[articles]}>
    <div class="kbarticlecategorylistitem"><a href="<{$_baseName}><{$_templateGroupPrefix}>/Knowledgebase/Article/View/<{$_knowledgebaseArticle[kbarticleid]}>/<{$_knowledgebaseArticle[linktypeid]}>/<{$_knowledgebaseArticle[seosubject]}>"><{$_knowledgebaseArticle[subject]}></a></div>
    <{/foreach}>
    </div>
    </td>
    <{/if}>
    <{/foreach}>
    </tr>
    </table>
    </div>
    <{/if}>

    <{if $_knowledgebaseArticleCount > 0}>
    <{foreach key=_kbArticleID item=_knowledgebaseArticle from=$_knowledgebaseArticleContainer}>
    <div class="kbarticlecontainer<{if $_knowledgebaseArticle[isfeatured] == '1'}> kbarticlefeatured<{/if}>">
    <div class="kbarticle"><a href="<{$_baseName}><{$_templateGroupPrefix}>/Knowledgebase/Article/View/<{$_knowledgebaseArticle[kbarticleid]}>/<{$_knowledgebaseCategoryID}>/<{$_knowledgebaseArticle[seosubject]}>"><{$_knowledgebaseArticle[subject]}></a></div>
    <div class="kbarticletext"><{$_knowledgebaseArticle[contentstext]}></div>
    </div>
    <{/foreach}>
    <{/if}>

    <{if $_knowledgebaseCategoryID == 0 && $_showEmptyViewWarning == false}>
    <table cellpadding="0" cellspacing="0" width="100%" border="0">
    <tr>
    <{if $_settings[kb_enpopulararticles] == '1'}>
    <td width="50%" align="left" valign="top"><div class="kbrightstrip">
    <table class="hlineheader hlinegray"><tr><th rowspan="2" nowrap><{$_language[mostpopular]}></th><td>&nbsp;</td></tr><tr><td class="hlinelower">&nbsp;</td></tr></table>
    </div>
    <ul>
    <{foreach key=_kbArticleID item=_knowledgebaseArticle from=$_knowledgebaseArticleContainer_Popular}>
    <li class="kbarticlelist">
    <div class="kbarticlelistitem"><a href="<{$_baseName}><{$_templateGroupPrefix}>/Knowledgebase/Article/View/<{$_knowledgebaseArticle[kbarticleid]}>/<{$_knowledgebaseCategoryID}>/<{$_knowledgebaseArticle[seosubject]}>"><{$_knowledgebaseArticle[subject]}></a></div>
    </li>
    <{/foreach}>
    </ul>
    </td>
    <{/if}>

    <{if $_settings[kb_enlatestarticles] == '1'}>
    <td width="<{if $_settings[kb_enpopulararticles] == '1'}>50%<{else}>100%<{/if}>" align="left" valign="top">
    <div><table class="hlineheader hlinegray"><tr><th rowspan="2" nowrap><{$_language[recentarticles]}></th><td>&nbsp;</td></tr><tr><td class="hlinelower">&nbsp;</td></tr></table></div>
    <ul>
    <{foreach key=_kbArticleID item=_knowledgebaseArticle from=$_knowledgebaseArticleContainer_Recent}>
    <li class="kbarticlelist">
    <div class="kbarticlelistitem"><a href="<{$_baseName}><{$_templateGroupPrefix}>/Knowledgebase/Article/View/<{$_knowledgebaseArticle[kbarticleid]}>/<{$_knowledgebaseCategoryID}>/<{$_knowledgebaseArticle[seosubject]}>"><{$_knowledgebaseArticle[subject]}></a></div>
    </li>
    <{/foreach}>
    </ul>
    </td>
    <{/if}>
    </tr>
    </table>
    <{/if}>
    </div>
    </div>
     

Share This Page