As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
Hi!
How to give to user abbility to chouse minor or major version during upload new content?
I expect some thing like this:
I believe this can be done but not via any config though. At a very high level , On share popup those values are defaults, you can change it to something you like afterall those are string values. You have to also extent : https://github.com/Alfresco/alfresco-community-share/blob/master/share/src/main/webapp/components/upload/dnd-upload.js#L86
https://github.com/Alfresco/alfresco-community-share/blob/master/share/src/main/webapp/components/upload/dnd-upload.js#L1611
On repo side, you would have to implement a behavior which you can utilize to control the versionable aspect if required.
Check these resources:
https://github.com/Alfresco/alfresco-community-repo/blob/master/repository/src/main/java/org/alfresco/repo/version/VersionableAspect.java
https://github.com/Alfresco/alfresco-community-repo/blob/master/repository/src/main/java/org/alfresco/repo/version/VersionModel.java
https://github.com/Alfresco/alfresco-community-repo/blob/master/repository/src/main/java/org/alfresco/repo/version/VersionServiceImpl.java#L1011
https://github.com/Alfresco/alfresco-community-repo/blob/master/repository/src/main/java/org/alfresco/service/cmr/version/VersionService.java#L100
https://github.com/Alfresco/alfresco-community-repo/blob/master/repository/src/main/resources/alfresco/model/contentModel.xml#L1025
Thank you very mach!
One more thing, I'm unsucsessfuly looking how to change default minor version 0.1 for new uploads to major 1.0 by config.