Hye!
So when we hit this url http://localhost/ward-suitecrm/index.php, following is displayed
What I am trying to do is use the same background elements which include navigation menu, sidebar etc and display them on another custom entrypoint : http://localhost/ward-suitecrm/events
So what approach I was using is that I went in page source on the index.php screen to see the code. The page source code includes code from multiple files.
Majority of the code in the page source is from two files : _head.tpl and _headerModuleList.tpl! Still there is some other code too and I donβt know from where that is coming.
http://localhost/ward-suitecrm/events hits the file named as eventlist.php as defined in the entry point.
So I tried to use the same approach as stated in suit documentation:
eventlist.php
<?php
require_once('include/MVC/View/SugarView.php');
class EventsList extends SugarView{
function customelayout()
{
$GLOBALS['log']->fatal("In custom layout function");
$smarty = new Sugar_Smarty();
$storePage = $smarty->fetch('custom/themes/SuiteP/tpls/_head.tpl');
return $storePage;
}
public function __construct() // constructor
{
$this->customelayout();
}
But nothing shows up! It enters into the function, but the background is still blank in http://localhost/ward-suitecrm/events