Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there any way to rename content type assigned to list. #1081

Open
HeToC opened this issue Sep 27, 2017 · 3 comments
Open

Is there any way to rename content type assigned to list. #1081

HeToC opened this issue Sep 27, 2017 · 3 comments
Milestone

Comments

@HeToC
Copy link

HeToC commented Sep 27, 2017

After assigning content type to list (actually sharepoint creates new list scoped content type based of the first one) its unable to rename it. (or assign new name while adding the link.

example:

            var baseContentType= new ContentTypeDefinition()
            {
                **Name = "Site scoped content type**",
                Id = new Guid("89a9424f-25ab-411c-9001-afbf5291b78a"),
                ParentContentTypeId = BuiltInContentTypeId.Item,
                Group = "Test group"
            };


            web.AddList(lstProjectJoural, list =>
                {
                    list
                        .AddContentTypeLink(new ContentTypeLinkDefinition {
                            ContentTypeId = baseContentType.GetContentTypeId(),
                            **ContentTypeName = "Descendant list scoped content type"**
                        })
                });
@SubPointSupport
Copy link
Contributor

Not at the moment, renaming content type within a list isn't supported yet.

First of all, can't see this feature being popular or demanded.
Secondly, it would be a bit confusing within SPMeta2 usage - first we'd need to add a content type, and then add another definition or something to rename it. Another way around is to update the name is only it was resolve by ID.. but in this case, we wouldn't know if it was a resolution by Name or ID. Becomes confusing and might potentially raise tons of unexpected errors.

@SubPointSupport
Copy link
Contributor

Maybe, at ContentTypeLinkDefinition, we might enable Name property update if only resolution worked well by ID.

Would it be sufficient, @HeToC ? But again, could be a potential way to get into troubles.

@HeToC
Copy link
Author

HeToC commented Sep 28, 2017

i think that would be good enough. There wont be any potential troubles in renaming list scoped content types.

@avishnyakov avishnyakov added this to the backlog milestone Jan 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants