MagicCMS Documentation

MagicPostTypeInfo Class

MagicPostTypeInfo is a wrapper class for MagicPost Tipo definition. It manages MagicPost types definitions stored in MagicCMS database.
"Tipo" is the key property of MagicPost. Trough MagicPost type definition table where you can:
  • Define if post is a container (can be parent of other posts).
  • Specify which fields are exposed (the editor can set values) an which are hidden in back end.
  • Specify which labels are shown for every MagicPost field in back end.
  • Define if post has an expiration.
  • If post can be rendered as an html page, specify which page template (a ASP.NET MasterPage) will be used to render it.
  • Specify an (HTML formatted) help text which editor can consult.
The first purpose of MagicPost definition is to build a back end tailored on final user needs. The second is to allow the construction of MagicCMS templates based on MasterPages writing the smallest possible number of lines of code.
MagicPostTypeInfo class define a number of integer constants corresponding to unique IDs of MagicPost type definition inserted by default in database types table. In this way developers can exploit the advantages of editor code completion and enjoy a more friendly approach to MagicPost types.
Generally you can freely define, rename and add new MagicPost type definitions. The MagicCMS back end offers to you a friendly interface to do this. However few types are handled by MagicCMS engine in some special way. See MagicPostTypeInfo Fields documentation for details.

Namespace:  MagicCMS.Core
Assembly:  MagicCMS.4.5 (in MagicCMS.4.5.dll)


public class MagicPostTypeInfo

Inheritance Hierarchy