Lagom WHMCS Client Theme delivers the possibility to overwrite the existing pages. This functionality comes in handy when you would like to offer multiple designs for a single Lagom WHMCS Client Theme page that can be managed via Page Manager. This feature will empower you to overwrite specific .tpl
files.
This option proves useful when designing a new Lagom page template from scratch. Refer to the instruction presented below if a specific Lagom WHMCS Client Theme page has only the “Default” template in Page Manager settings.
/templates/lagom2/core/pages
directory and open a specific page folder. For example, if you wish to create a new template for the "affiliates" page, you should open the /templates/lagom2/core/pages/affiliates
folder.affiliates
folder you have page.php
file, that contain information about the display of a particular page in our addon. For example, the affiliates
page will be displayed in the "Client Area" tab. If you want the page to be displayed in other groups, you can enter 'group' => 'Order'
or 'group' => 'Website'
.<?php
return [
'display_name' => 'Affiliates',
'group' => 'Client Area',
'type' => 'client-portal',
'listDisplay' => true,
'variables' => [
],
];
If you have just created a new page by following the Create Custom Page article, you need to create the page.php
file shown above with your desired settings.
/templates/lagom2/core/pages/affiliates/mynewtemplate
.pageoption.php
file and paste the below code. Replace [Enter Template Name]
with your template name.<?php
return [
'display_name' => '[Enter Template Name]',
'preview' => 'thumb.png',
];
.tpl
file. This file should have the same name as the "page" folder name from step 2. Following our example, it should be named affiliates.tpl
for the "affiliates" page..tpl
file to duplicate its code:
/templates/lagom2/
/templates/orderforms/lagom2
.tpl
file which contains the same name as the “page” folder name that you have created. Following our example, it is the /templates/lagom2/affiliates.tpl
file.{else}
and {/if}
tags.?rspage=[template name]
, or &rspage=[template name]
if a specific URL already has one ?
sign,This option grants you the possibility to perform the customization of the already existing Lagom page template. Please DO NOT implement any changes to the existing Lagom page template files, as such changes will be overwritten by future Lagom WHMCS Client Theme updates.
/templates/lagom2/core/pages
directory and open the “page” folder that needs to be modified.pageoption.php
file and change the display_name
value..tpl
file and make necessary modifications.?rspage=[template name]
, or &rspage=[template name]
if a specific URL already has one ?
sign,