Add A Page To Clientexec
This is how to add a new page to Clientexec. In this example, we will add a TOS page.
Using ftp or filemanager, go to the directory in your clientexec install called plugins/snapin and there add a new directory called content (so it would be plugins/snapin/content/ ), and in the content directory you will create two new files called:
PluginContent.php
tos.phtml
This is the content for the PluginContent.php file:
this is basic content for the tos.phtml file:
You can edit the tos file to add your own Terms of Service. (using html).
To activate the new page, in the admin area visit Settings > Plugins > Snapins and in the dropdown select Extra Content Pages and set Enabled to Yes. You can make the page viewable by all Customers here or edit which client groups can view the page at Settings > Users > Client Groups.
In order to view the tos page you would go to yourclientexeclink.com/index.php?fuse=admin&view=snapin&controller=snapins&v=tos&plugin=content
The link will also be added to the dropdown Support menu in the Client Portal.
Using ftp or filemanager, go to the directory in your clientexec install called plugins/snapin and there add a new directory called content (so it would be plugins/snapin/content/ ), and in the content directory you will create two new files called:
PluginContent.php
tos.phtml
This is the content for the PluginContent.php file:
<?php
require_once 'modules/admin/models/SnapinPlugin.php';
class PluginContent extends SnapinPlugin
{
public function getVariables()
{
$variables = array(
'Plugin Name' => array(
'type' => 'hidden',
'description' => '',
'value' => 'Extra Content Pages',
),
);
return $variables;
}
public function init()
{
$this->settingsNotes = lang('When enabled this snapin adds extra content pages.');
$this->addMappingForTopMenu('public', 'support', 'tos', 'Terms of Service', 'Integrate TOS in Client Support Menu');
}
public function tos()
{
}
}
this is basic content for the tos.phtml file:
<div class="content-page">
<div class="container">
<div class="cm-holder">
<div class="data-table-wrapper">
<div class="head">
<h1>
Terms of Service
</h1>
</div>
<div id="content" class="cs-padding">
Terms of Service would go here
</div>
</div>
</div>
</div>
You can edit the tos file to add your own Terms of Service. (using html).
To activate the new page, in the admin area visit Settings > Plugins > Snapins and in the dropdown select Extra Content Pages and set Enabled to Yes. You can make the page viewable by all Customers here or edit which client groups can view the page at Settings > Users > Client Groups.
In order to view the tos page you would go to yourclientexeclink.com/index.php?fuse=admin&view=snapin&controller=snapins&v=tos&plugin=content
The link will also be added to the dropdown Support menu in the Client Portal.
Updated on: 01/10/2024
Thank you!