API docs     >     Pages and Sites     >     Templates

Templates->getList

Description

getList ( $templateId )
Gets a list of Templates

Parameters

$templateId
int
Template Id of the parent node - will use the root node in case it's not specified

Returns

array
Template List
  1. Array(                                  array Array of n Templates
  2.     [0] => Array(
  3.         [LFT] => 4                      int Id of the left node in the nested set tree structure
  4.         [RGT] => 9                      int Id of the right node in the nested set tree structure
  5.         [LEVEL] => 2                    int Level in tree
  6.         [PARENT] => 5                   int Parent Id
  7.         [NAME] => 'Template 1'          string Name
  8.         [IDENTIFIER] => 'template_1'    string Identifier
  9.         [FOLDER] => 0                   int 1 if folder, 0 if not
  10.         [ID] => 8                       int Id
  11.     )
  12.     ...
  13. )