> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://docs.clientexec.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# 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:

```html
<?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:

```html
<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. 



