generaldarkness Posted November 3, 2015 Share Posted November 3, 2015 How can I get the text from a knowledgebase article for use with meta tags? I have tried {$kbcat.description} and {$kbarticle.article} but they just come out empty. $kbarticle.title works fine for title, but I want to truncate the actual article text to use in meta description. 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted November 3, 2015 Share Posted November 3, 2015 have you read the first page of the thread below, it may be useful.... http://forum.whmcs.com/showthread.php?36631-meta-name-description-problems 0 Quote Link to comment Share on other sites More sharing options...
generaldarkness Posted November 3, 2015 Author Share Posted November 3, 2015 Thanks for the reply. that was the article i got the tags from. But doesn't seem to work. I'm wondering if the $kbarticle.article has been changed in the latest version. 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted November 3, 2015 Share Posted November 3, 2015 it might be {$kbarticle.text} that you need to use... 0 Quote Link to comment Share on other sites More sharing options...
generaldarkness Posted November 4, 2015 Author Share Posted November 4, 2015 Thanks Brian, that's the ticket, works perfect. {$kbarticle.text|truncate:100|strip_tags} 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.