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

feat(edit content) #27289 : Add a button to the Content Type screen to enable the new edit mode #27333

Conversation

jcastro-dotcms
Copy link
Contributor

@jcastro-dotcms jcastro-dotcms commented Jan 12, 2024

Proposed Changes

  • Adds a new column to the structure table called metadata that will allow us to add any sort of permanent or temporary configuration parameters for every Content Type.

Add bars to the edit content type dialog and the new edit content screen when the feature flag is on.

Screenshare.-.2024-01-19.10_24_42.PM.mp4

@hmoreras hmoreras self-assigned this Jan 18, 2024
@fmontes fmontes linked an issue Jan 19, 2024 that may be closed by this pull request
@fmontes
Copy link
Member

fmontes commented Jan 22, 2024

@hmoreras conflictos :D

@@ -83,7 +83,7 @@ export class DotEditContentFormComponent implements OnInit {
this.onFormChange(value);
});

this.formData.fields.forEach((field) => {
this.formData.contentType.fields.forEach((field) => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this mean that we are passing fields twice? formData.fields and formData.contentType.fields?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And why the change?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because a change in EditContentPayload before in that interface we had a property called layout fields and contentType this last one as a string refereing to the conten type variable. All this props are actually in one single object, DotCMSContentType, so move that to a single prop.

Copy link

@jcastro-dotcms
Copy link
Contributor Author

Closing this PR as the merge with the latest master caused several files to go missing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
9 participants