Uploaded image for project: 'Content Types'
  1. Content Types
  2. MGNLCT-347

Norsu-based contenttype uses '$type: nameField'

    XMLWordPrintable

Details

    • Story
    • Resolution: Done
    • Neutral
    • None
    • None
    • None

    Description

      Contenttypes on Norsu include the new '$type: nameField' in the forms that they create. 

      nameField is the new field developed in order to give an author the ability to enter a 'Name' and have a 'Slug' autocreated for them.

      nameField is introduced in: https://jira.magnolia-cms.com/browse/NORSU-912

      The contentType implementation of nameField should be as described here:
      https://wiki.magnolia-cms.com/display/PMTEAM/Names+on+Norsu+-+Decision+-+2023-01-10

       

      Acceptance Criteria:

      • In a content type - a nameField  will be automatically added to the top of the generated form.
      • If a developer supplies a property called "name", then it is replaced/merged with a nameField . At the least, if there is a "label" property supplied, then this "label" property should be used on the generated nameField.
      • When the content item is saved,
        • then the "slug" field should be used for the node name.
        • the "name" field should be saved as a content property.

      Update AC: 

      • a nameField is intended only generated form for root node only. In case Submodel, developer supplies a property "name", then textField is generated.
      • subModels:
            - name: Guide
              properties:
                - name: name
                  label: Name 

      Update AC: from 17 Jan 2023: There are possible e2e test can be affected. See https://jira.magnolia-cms.com/browse/CLOUD-3286

      Note:

      It is anticipated that this resolves the other two related tickets. Maybe we can already close them as obsolete.

      https://jira.magnolia-cms.com/browse/MGNLCT-310

      https://jira.magnolia-cms.com/browse/MGNLCT-311

       

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            There are no Sub-Tasks for this issue.

            Activity

              People

                oanh.thai Oanh Thai Hoang
                czimmermann Christopher Zimmermann
                DeveloperX
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:
                  Work Started:

                  Checklists

                    Task DoD

                    Time Tracking

                      Estimated:
                      Original Estimate - Not Specified
                      Not Specified
                      Remaining:
                      Remaining Estimate - Not Specified
                      Not Specified
                      Logged:
                      Time Spent - 0.5d
                      0.5d