This project is read-only.


TypePartEditor for settings should provide access to current content type being edited, (with nice old music)


It would be useful to be able to access the list of parts in the content type, see


CSADNT wrote Sep 15, 2013 at 10:27 AM

Could be done in
    public EditTypeViewModel GetType(string name) {
        var contentTypeDefinition = _contentDefinitionManager.GetTypeDefinition(name);

        if (contentTypeDefinition == null)
            return null;

        var viewModel = new EditTypeViewModel(contentTypeDefinition) {
            Templates = _contentDefinitionEditorEvents.TypeEditor(contentTypeDefinition)

        foreach (var part in viewModel.Parts) {
            /* replace part.Templates = _contentDefinitionEditorEvents.TypePartEditor(part._Definition); */
            part.Templates = _contentDefinitionEditorEvents.TypePartEditor(contentTypeDefinition ,part._Definition);
            foreach (var field in part.PartDefinition.Fields)
                field.Templates = _contentDefinitionEditorEvents.PartFieldEditor(field._Definition);

        if (viewModel.Fields.Any()) {
            foreach (var field in viewModel.Fields)
                field.Templates = _contentDefinitionEditorEvents.PartFieldEditor(field._Definition);

        return viewModel;

But necessitate many modification in all existing hooks...

sebastienros wrote Feb 4, 2014 at 9:06 PM

waiting on pull request change or invalidation of the suggestion

CSADNT wrote Feb 5, 2014 at 8:43 PM

CSADNT wrote Feb 18, 2014 at 4:38 AM

Any chance to have it checked and apply before next Greek calenda?

CSADNT wrote Mar 4, 2014 at 4:25 AM

Will I see this in m'y own lifetime frame...I am a I?

Jetski5822 wrote May 19, 2014 at 10:13 PM

Fixed in changeset 8547013d1d3c2b43f421ac7aa4e7176ea785c2e6

CSADNT wrote May 19, 2014 at 10:59 PM

Thanks, Nic