Managing Template Galleries and Templates
Out of the box, you can choose to manage template galleries and templates using either Site Manager or Template Explorer, which might be OK if you are using Visual Studio .NET as your development tool (as recommended). A compelling reason to write an administrative module to manage template galleries and templates is to work with them without having to open VS.NET. We have found this particularly useful when attempting to work in an environment where VS.NET is not installed such as on a production or a staging server. Or perhaps business requirements call for certain actions to be performed when a template gallery or template is created. Whatever the occasions may be, you may need to modify template gallery and template properties, placeholder definition and custom property collections through code.
The PAPI offers a wide range of methods and properties to work with template galleries and templates. We explore the most frequently used methods in this...