This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ChangeContentTypeController : UmbracoAuthorizedApiController | |
{ | |
private readonly IContentTypeService _contentTypeService; | |
private readonly IContentService _contentService; | |
public ChangeContentTypeController(IContentTypeService contentTypeService, IContentService contentService) { | |
_contentTypeService = contentTypeService; | |
_contentService = contentService; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- CREATES THE COMPOSITION FROM THE INHERITED TYPE | |
DECLARE @CompositionId int; | |
DECLARE @CompositionsFolder int; | |
DECLARE @PropertyTab int; | |
DECLARE @CompositionGUID uniqueidentifier; | |
-- Generate a unique guid for the metadata composition | |
SET @CompositionGUID = 'f583bcf5-b007-47d4-992e-c193f225f76c' | |
DECLARE @PropertyTagGUID uniqueidentifier; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
getEditorScope = $scope => { | |
let editorScope = $scope.$parent; | |
do { | |
editorScope = editorScope.$parent; | |
} while (!Object.prototype.hasOwnProperty.call(editorScope, 'contentForm')); | |
this.editorScope = editorScope; | |
} |
OlderNewer