Menu
Welcome, Guest
Username: Password: Remember me

TOPIC: load custom entry point with CRM top menu and side bar

load custom entry point with CRM top menu and side bar 2 months 1 week ago #85767

  • peted
  • peted's Avatar
  • Offline
  • Premium Member
  • Posts: 105
  • Thank you received: 4
  • Karma: 2
On our CRM we have lots of custom enrty points, but they all do something then return you to a module. We now have a need to have one display some data. It works, but it just display a white page with any output.

Is it possible to load the top menu bar and the side bar for a custom enrty point?

Many thanks
The administrator has disabled public write access.

load custom entry point with CRM top menu and side bar 2 months 1 week ago #85771

  • peted
  • peted's Avatar
  • Offline
  • Premium Member
  • Posts: 105
  • Thank you received: 4
  • Karma: 2
I have found doing this on the custom entry point does what i require.
require_once 'include/MVC/View/SugarView.php';
$view = new SugarView;
$view->displayHeader();

It loads the custom entry point withing the CRM template and allows me to use the templates CSS. What i don't know if this is correct or best practice. could there be some adverse effect of doing this?

Any advice would be great.
The administrator has disabled public write access.

load custom entry point with CRM top menu and side bar 2 months 1 week ago #85787

  • cherub-chum
  • cherub-chum's Avatar
  • Offline
  • Elite Member
  • SuiteCRM Dev
  • Posts: 270
  • Thank you received: 49
  • Karma: 14
I wonder if you have tried the "action" method?
simply create a file in your target module, lets say Accounts. The file will be placed at custom/modules/accounts/my_action.php

Now if you call the accounts module like index.php?module=Accounts&action=my_action
it will call your file within SuiteCRM template. All menu,navbars etc would be loaded. you can print some data inside your file to verify the view.
Everything seems impossible, until its done.

Skype : cherubchum
The administrator has disabled public write access.
The following user(s) said Thank You: peted

load custom entry point with CRM top menu and side bar 2 months 1 week ago #85791

  • peted
  • peted's Avatar
  • Offline
  • Premium Member
  • Posts: 105
  • Thank you received: 4
  • Karma: 2
That works well, Thanks.

Is there an pros or cons over the methord i have posted?
The administrator has disabled public write access.
Time to create page: 0.067 seconds
Powered by Kunena Forum