/// <summary>
 ///		Crea una página
 /// </summary>
 public DocumentModel CreatePage(DocumentModel parent, string name, string title,
                                 string description, string keyWords, string content,
                                 DocumentModel.ShowChildsMode childMode = DocumentModel.ShowChildsMode.None,
                                 bool isRecursive = false, bool showAtRss = false)
 {
     return(CreateDocument(parent, name, title,
                           description, keyWords, content, childMode, isRecursive, showAtRss));
 }
        private DocumentModel CreateDocument(DocumentModel parent,
                                             string name, string title, string description,
                                             string keyWords, string content,
                                             DocumentModel.ShowChildsMode childMode = DocumentModel.ShowChildsMode.SortByDate,
                                             bool isRecursive = false, bool showAtRss = false)
        {
            FileModel     file     = new FileFactory().CreateFile(Project, GetFileParent(parent), name, FileModel.DocumentType.Document);
            DocumentModel document = new DocumentModel(file);

            // Asigna las propiedades al documento
            document.IDScope     = DocumentModel.ScopeType.Page;
            document.IsRecursive = isRecursive;
            document.KeyWords    = keyWords;
            document.ModeShow    = childMode;
            document.ShowAtRSS   = showAtRss;
            document.Title       = title;
            document.Description = description;
            document.Content     = content;
            // Graba el documento
            new DocumentBussiness().Save(document);
            // Devuelve el documento
            return(document);
        }