Jump to content

Need help: Menu context usage


ptl

Recommended Posts

Hello
I'm trying to create some custom clientarea page like described here: https://developers.whmcs.com/advanced/creating-pages/
Does anyone know how to use "serviceView" context for menus at custom page?
I tried to provide service id as _GET parameter :
http://whmcs_url/mypage.php?id=3
not working
tried init menus using second parameter:

Menu::primarySidebar('serviceView', '3'); //id from tblhosting
Menu::secondarySidebar('serviceView', '3');
also I tried to create 
$service = new \WHMCS\Service\Service($id);
and init using this object
Menu::primarySidebar('serviceView', $service);
Menu::secondarySidebar('serviceView', $service);

in all cases WHMCS does not render service-related menus at my page.

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