weba Posted November 19, 2020 Share Posted November 19, 2020 Hi,  Adding a custom page is not that hard. I have this now the file testing.php in de main WHMCS directory and the testing.tpl file in the templatedirectory and it works. Except for the menu. Thats not visible, however no errors 😉 How can I get my (or a) menu visible on the custom page ? Am I forgetting something ? thx Michel <?php use WHMCS\ClientArea; use WHMCS\Database\Capsule; define('CLIENTAREA', true); require __DIR__ . '/init.php'; $ca = new ClientArea(); $ca->setPageTitle('testing'); $ca->addToBreadCrumb('index.php', Lang::trans('globalsystemname')); $ca->addToBreadCrumb('test.php', 'testing'); $ca->initPage(); Menu::addContext(); Menu::primarySidebar('supportKnowledgeBase'); $ca->setTemplate('testing'); $ca->output();  0 Quote Link to comment Share on other sites More sharing options...
brian! Posted November 20, 2020 Share Posted November 20, 2020 Hi MIchel, 17 hours ago, weba said: How can I get my (or a) menu visible on the custom page ? Am I forgetting something ? the supportKB sidebar would be secondary rather than primary, so that line of code should be... Menu::secondarySidebar('supportKnowledgeBase'); 0 Quote Link to comment Share on other sites More sharing options...
weba Posted November 20, 2020 Author Share Posted November 20, 2020 Hey Brian! Thx for the thinking but that did not solve it. Its not that I need todo something in the .tpl is it ? 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted November 20, 2020 Share Posted November 20, 2020 3 minutes ago, weba said: Thx for the thinking but that did not solve it. I just tried it and it works for me... I changed settemplate to use homepage (to save time), but it works... 7 minutes ago, weba said: Its not that I need todo something in the .tpl is it ? I assume it exists in your active theme folder ? 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.