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

Support 'UniqueContentTypeFieldsOrderDefinition' at list level content types #742

Closed
SubPointSupport opened this issue Nov 27, 2015 · 2 comments

Comments

@SubPointSupport
Copy link
Contributor

Is it possible with M2 to change the column order for a list? I'm looking for something similar to ".UniqueContentTypeFieldsOrderDefinition()" but for lists which dosen't have content types enabled. For some reason the fields I'm provisioning is not placed in the same order which they were provisioned in.

Community feedback:
https://www.yammer.com/spmeta2feedback/#/Threads/show?threadId=619732764

@SubPointSupport
Copy link
Contributor Author

Essentially, it comes back to the default content type in a list.

The default content type is responsible for the column order within a list while content types are disables. Document for the doc libraries, Item for the custom lists, and so on.

M2 does not support list scoped content type operations, so it would require more effort and new feature set.

@SubPointSupport SubPointSupport changed the title Support columns order for a list Support 'UniqueContentTypeFieldsOrderDefinition' at list level content types Nov 28, 2015
@SubPointSupport
Copy link
Contributor Author

ContenTypeLink now supports .AddUniqueContentTypeFieldsOrder() syntax, so that the target content type within a list can be resolved and updated with the desired field order.

Works well on custom and OOTB content type for both CSOM/SSOM. Below tests can be used as a jump start.

  • CanDeploy_CanSetupUniqueContentTypeFieldsOrder_At_List_Scope()
  • CanDeploy_CanSetupUniqueContentTypeFieldsOrder_At_OOTB_List_Scope()

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

1 participant