annomander Posted January 4, 2009 Share Posted January 4, 2009 If you go to the Knowledge base page, it has a main heading called category and below that the different category titles, if you click on one of the categorys You go to a list of articles for that category, at the top is the word ARTICLES Is it possible to change this so that the TITLE of the category is before the word ARTICLE I've looked at using the code form KNOWLEDGEBASE.TPL and also the breadcrumbnav as this as the category title in its trail, but theres too much there, the breadcrumbnav must be made up of other page variables, its just knowing how to access them. Also with the new seo, the title is also in the page link, but again its just knowing how to access does anyone have any idea to achieve this? 0 Quote Link to comment Share on other sites More sharing options...
clbryan26 Posted January 7, 2009 Share Posted January 7, 2009 I'm not a real code person; but I did take a quick look into the TPL files for the KB. I didn't see both KB Article and Category Title in the same file. I could be wrong but I would have to guess that this may not be a native feature; although I am sure its not hard nor impossible. 0 Quote Link to comment Share on other sites More sharing options...
xwc_mark Posted April 9, 2010 Share Posted April 9, 2010 It appears the category name is in GLOBALS so I've put this at the top of the knowledgebasecat.tpl {php} $this->assign('categoryname', $GLOBALS['catname']); {/php} and then I use {$categoryname} later in that template where I wanted to display the category name. In my case I just replaced the default language completely, but, you could just put it before with a space between to accomplish what you're trying to do. 0 Quote Link to comment Share on other sites More sharing options...
Juanzo Posted April 22, 2011 Share Posted April 22, 2011 I'm sorry to bump this old thread, but I was wondering exactly the same thing. Specially because this causes multiples pages with the same title, which Google discourages. 0 Quote Link to comment Share on other sites More sharing options...
sohouk Posted April 22, 2011 Share Posted April 22, 2011 The KB Category / Articles text is in the knowledgebasecat.tpl file. Its quite simple and the displayed text depends on whether there are categories and articles, or only articles to display. The language file Variable knowledgebasecategories contains the Categories text "Categories" The language file Variable knowledgebaseartciles contains the articles text "Articles" The if /else structure displays whichever is appropriate in the template. Here's simplified code from knowledgebasecat.tpl {if $kbcats} <!--If there are any relevant Categories lets show the $LANG.knowledgebasecategories text --> <p class="heading2">{$LANG.knowledgebasecategories}</p> {/if} {if $kbarticles} <!--If there are any relevant Articles now show the $LANG.knowledgebasearticles text --> <p class="heading2">{$LANG.knowledgebasearticles}</p> {/if} So, if you simply move around {$LANG.knowledgebasearticles} or {$LANG.knowledgebasecategories} to where you want them, then you should get what you want. As ever, backup your template before you make any changes! Trevor 0 Quote Link to comment Share on other sites More sharing options...
computers.wheneva Posted April 23, 2011 Share Posted April 23, 2011 Hi Guys, Should this not be made a sticky Post or something. I find that this could be useful for other users aswell 0 Quote Link to comment Share on other sites More sharing options...
Juanzo Posted April 24, 2011 Share Posted April 24, 2011 The KB Category / Articles text is in the knowledgebasecat.tpl file. Its quite simple and the displayed text depends on whether there are categories and articles, or only articles to display. The language file Variable knowledgebasecategories contains the Categories text "Categories" The language file Variable knowledgebaseartciles contains the articles text "Articles" The if /else structure displays whichever is appropriate in the template. Here's simplified code from knowledgebasecat.tpl {if $kbcats} <!--If there are any relevant Categories lets show the $LANG.knowledgebasecategories text --> <p class="heading2">{$LANG.knowledgebasecategories}</p> {/if} {if $kbarticles} <!--If there are any relevant Articles now show the $LANG.knowledgebasearticles text --> <p class="heading2">{$LANG.knowledgebasearticles}</p> {/if} So, if you simply move around {$LANG.knowledgebasearticles} or {$LANG.knowledgebasecategories} to where you want them, then you should get what you want. As ever, backup your template before you make any changes! Trevor Though I was talking about meta tag titles, the ones that show at the browser bar when you visit a website, your message reminded me of something else (sorry for the offtopic): Is it possible to show a message in inside a specific knowledgebase category? Something like {if $kbcats = "Email"} message {/if} 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.