souzadavi Posted March 10, 2016 Share Posted March 10, 2016 Hello i would to like to know how to create a new homepage.tpl style file? I saw the http://docs.whmcs.com/Creating_Pages but this show only how to create pages inside to container, so there has already a titles and subtitle inserted on code. I can´t create blank pages. I would like to set an entire new page over whmcs, but at same template folder, so I can edit every thing, doing like a land page or something similar. Is it clear? There is anyway? thanks Davi 0 Quote Link to comment Share on other sites More sharing options...
souzadavi Posted April 18, 2016 Author Share Posted April 18, 2016 I didn't find a nice solution for it, i'm using conditions at template files, added new conditions in head.php and footer php files with smart tags. 0 Quote Link to comment Share on other sites More sharing options...
souzadavi Posted June 24, 2016 Author Share Posted June 24, 2016 I got a solution from WHMCS ticket!!! <?php use WHMCS\Database\Capsule; use WHMCS\View\Menu\Item as MenuItem; define("CLIENTAREA", true); // Set the template you want to use for the custom page BEFORE init.php is called $GLOBALS['_REQUEST']['systpl'] = 'five'; require("init.php"); // WHATEVER YOU ARE DOING IN HERE // Set the session back to the default template: $GLOBALS['_SESSION']['Template'] = 'six'; $ca->output(); 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.