Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-19689

publicAPI : field definitions order (position/placement) must be used with Legacy

    XMLWordPrintable

Details

    Description

      When using the public API, the position property of FieldDefinition shouldn't be required.
      Currently, omitting it results in random position in admin interface, because all field types will have a 0 set in "ezcontentclass_attribute.placement".

      The different use cases are:

      • Adding field definition in the order in which they should appear in content type.
      • Redefine the position of existing field definition.
      • Insert a new field type at a specific position

      Previous description:

      Hi

      I make a field type with ezstring (name) and ezkeyword fieldtype.
      I then remove the class and make it again ( with the very same code). After the second time, the ezkeyword fieldtype is listed before ezstring in /class/view/17

      If you then use admin2 to edit the class, then they appear in the correct order

      I am attaching the database

      Attachments

        Activity

          People

            Unassigned Unassigned
            vl vl
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 4 hours, 30 minutes
                4h 30m