Description

This function lists file templates from the /usr/local/cpanel/share/templates directory.

Examples




$cpanel = new CPANEL(); // Connect to cPanel - only do this once.
$list_templates = $cpanel->api1('Fileman', 'listtemplates'); // Call the function.



my $cpliveapi = Cpanel::LiveAPI->new(); # Connect to cPanel - only do this once.
my $list_templates = $cpliveapi->api1('Fileman', 'listtemplates'); # Call the function.


<cpanel Module="Fileman::listtemplates ()">




cpapi1 --user=username Filename listtemplates



<html>
<option value="Text Document">Text Document</option>
<option value="HTML Document">HTML Document</option>
<option value="Perl Script">Perl Script</option>
<option value="Shell Script">Shell Script</option>
<option value="Text Document">Text Document</option>
</html>




Parameters

This function does not accept parameters.

Returns

This function returns all available file templates in HTML format.