Page 1 of 1

Add block topics from knowledge base to other page?

Posted: Thu Sep 16, 2021 8:08 am
by front
Can somebody please tell me if I could add block with topics which generates at knowledgebase.php page to page where user creating new ticket?
I have found html code for this block of topics and copied to create-ticket.php page.
However it doesn’t appear on the page. I know there is a call that I'm missing somewhere but I don't know where.
If anyone has an idea on how to move this bit of code to the create-ticket.php page that would be greatly appreciated.

Re: Add block topics from knowledge base to other page?

Posted: Tue Sep 21, 2021 4:04 pm
by Klemen
You will likely need to fetch the articles from the database first.

See how it's done in the function print_start inside the main Hesk index.php file for sample code.