Problem/Motivation

As far as I can tell the generated documentation shows the fields in no specific ordering, I believe it would be more useful if the ordering was based on the form display field ordering (any hidden fields should be displayed at the bottom)

Steps to reproduce

access /admin/config/documentation-generator/overview see ordering of fields does not match form display

Proposed resolution

Order fields by form display ordering with hidden fields listed after displayed fields.

Remaining tasks

Update code to list in form display order

User interface changes

No

API changes

No

Data model changes

No

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

realityloop created an issue. See original summary.

gaurav.kapoor’s picture

Status: Active » Needs review
StatusFileSize
new1.62 KB

I have added a Lil more logic to ensure that fields shown in the documentation are arranged based on their weight in manage form display settings.

gaurav.kapoor’s picture

Version: 2.0.4 » 2.0.x-dev

@realityloop Can you review the provided patch? Does it work as per your expectations? I have introduced a simple logic of using field weights to rearrange the field values.

gaurav.kapoor’s picture

Issue tags: +Needs reroll
gaurav.kapoor’s picture

Issue tags: +Novice
kalpanajaiswal’s picture

gaurav.kapoor’s picture

Issue tags: -Needs reroll, -Novice

Waiting for more feedback and review here.