Jump to content

How to add side menu to a custom page


swartjie

Recommended Posts

Hey Guys,

 

I am trying to add the Billing side menu from WHMCS template to my custom page, How can I go about doing this?
I am not sure at all, I do understand how to add items to the menu or even create a separate one, but I cannot get it to display the existing billing side menu to the page...

 

I would love any and all assistance :).

 

Kind Regards

Link to comment
Share on other sites

On 21/12/2018 at 11:59, swartjie said:

I am trying to add the Billing side menu from WHMCS template to my custom page, How can I go about doing this?

by using Contexts    in your custom.php file...

On 21/12/2018 at 11:59, swartjie said:

I am not sure at all, I do understand how to add items to the menu or even create a separate one, but I cannot get it to display the existing billing side menu to the page...

you should need to add the code below to your custom php file, after initPage() and before you use setTemplate.

Menu::addContext();
Menu::primarySidebar('invoiceList');
Menu::secondarySidebar('invoiceList');

the Creating Pages documentation should be helpful if you're unfamiliar with making custom pages in WHMCS.

for any sidebars that you can't access via Contexts, then you'll probably have to recreate them from scratch in the php file (or later using a hook).

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated