Save() public method

public Save ( ) : void
return void
Ejemplo n.º 1
0
        private void Install(CTD ctd)
        {
            ContentType contentType = ContentTypeManager.LoadOrCreateNew(ctd.Document);

            ContentTypeManager.ApplyChangesInEditor(contentType, _editor);
            contentType.Save(false);
            ContentTypeManager.Current.AddContentType(contentType);
        }
Ejemplo n.º 2
0
        private void Install(CTD ctd)
        {
            ContentType contentType = ContentTypeManager.LoadOrCreateNew(ctd.Document);

            // skip notification during content type install to avoid missing field errors
            contentType.DisableObserver(TypeHandler.GetType(NodeObserverNames.NOTIFICATION));

            ContentTypeManager.ApplyChangesInEditor(contentType, _editor);
            contentType.Save(false);
            ContentTypeManager.Current.AddContentType(contentType);
        }