-
Notifications
You must be signed in to change notification settings - Fork 470
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
Copy ContentType API #21697
Comments
Here's another potential solution that I think would also work, and might offer some advantages: Allow users to “embed” one content type in another. So, you could create a content type A with the common fields - including the velocity var names and layout those fields should always have - and then embed that entire content type into content type B. The embedding could be done multiple ways, though I think a new field type might be the simplest. Some potential advantages:
There are some other potential advantages this could offer, though I think the use cases are alot less common than the ones I mentioned above. In any case, another alternative to consider. |
Endpoint:
e.g
|
* #21697 adding the create type from base type * #21697 feedback and improvements * #21697 including field variables now * #21697 adding integration test for copy * #21697 adding copy curl test * #21697 adding copy curl test * #21697 feedback done * revert ContentType postman * tests Co-authored-by: Erick Gonzalez <[email protected]>
UI in this issue: #21789 |
Tested and now we the endpoint is working and we are able to clone content types, but here some improvements
|
This card will need to doc: |
After a call with @bryanboza I am able to see this behavior |
Also, we need to test this using MSSQL as db, I'm getting this error when I try to copy the Log Error: https://gist.github.com/bryanboza/240664e8451cd03e5a3929de9caeb4c0 |
As per @oidacra order is fine now. |
Verified using docker image |
Fixed, tested on release-22.04 // Docker // FF |
* #22078 missing min idle (#22079) * #21697 Fix to aviod issues with the system host on cloning content type (#22089) * #21697 fix to aviod issues with the system host on cloning content type * #21697 adding unit test * #22065 Content API, ES Search API and Velocity viewtools needs to return the JSON not as a string * #22097 Velocity render for block editor doesn’t support links * #22066 Update block editor * fire release docker image generation * Update block editor library * #22072 Add blockquote, codeBlock & horizontalRule vtl files (#22084) * Renaming release to 22.05 * groupId was being ignored for uploadArchives command * #22065 Adding new View Strategy for Story Block fields. (#22135) * #22065 : Adding new View Strategy for Story Block fields. This new View Strategy allows the REST Endpoints to transform the data from Story Block fields from JSON-as-String into a Map that can be rendered as an appropriate JSON object. * #22065 : Fixing some Integration Tests * #22065 : Fixing CURL Test * Update starter (#22152) * Updating core-web versions * Publish Release Co-authored-by: Will Ezell <[email protected]> Co-authored-by: Jonathan <[email protected]> Co-authored-by: Jose Castro <[email protected]> Co-authored-by: Rafael Velazco <[email protected]> Co-authored-by: Freddy Montes <[email protected]> Co-authored-by: nollymar <[email protected]> Co-authored-by: victoralfaro-dotcms <[email protected]>
Is your feature request related to a problem? Please describe.
There are circumstances that might require the creation of many content types that share the same base fields. Creating the same fields each time adds tedium and could result in user error.
Describe the solution you'd like
There are multiple potential ways to implement this, however after some discussion we think the best solution would be to allow a Content Type to copy its initial fields from another Content Type. This would allow users to create bootstrap Content Types for a lot of default fields, or extend existing already created Content Types.
The text was updated successfully, but these errors were encountered: