Jump to content

New homepage file


souzadavi

Recommended Posts

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

Link to comment
Share on other sites

  • 1 month later...
  • 2 months later...

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();

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.

×
×
  • 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