Problem/Motivation

From a comment by @eojthebrave:

I wonder if we should change the order of these links while we're at it. It seems like we could do a better job of ordering things based on order of complexity, and/or order that people are likely to want to learn these things.

Right now the order with this patch is:

  • Simple Form
  • Input Demo
  • Form State Example
  • Container Demo
  • Vertical Tab Demo
  • Ajax Demo
  • Modal Example
  • Build Demo
  • Ajax Add More

Proposed resolution

I think this might be a better order overall:

  • Simple Form
  • Input Demo
  • Build Demo
  • Container Demo
  • Form State Example
  • Vertical Tab Demo
  • Ajax Demo
  • Ajax Add More
  • Modal Example

Additionally, looking at this list, it seems like "Form State Example" isn't a great name. And something like "States API Example" might be better. Based on the title alone I assumed it was going to be about $form_state, and not #state => array() stuff.

At a minimum this new link should be grouped next to the existing AJAX Demo I think.

Remaining tasks

User interface changes

Minor.

API changes

None.

Data model changes

None.

Follow-up to #2831294: Page controller is missing a menu link

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Torenware created an issue. See original summary.

Torenware’s picture

eojthebrave’s picture

Status: Active » Needs review
FileSize
3.12 KB

This re-orders the list both in the docblock in fapi_example.module and in \Drupal\fapi_example\Controller\Page::description()

navneet0693’s picture

Uploading a patch that makes the ordering of links in block menu and page similar. Refer to screenshot for observation of issue.

andypost’s picture

LGTM
Related needs update for weight also and provides "configure" link for fapi module, that could be done here as well

navneet0693’s picture

@andypost Right, I will re-roll the patch once #2793383: A multistep form example is missing in fapi_example this one is fixed.

navneet0693’s picture

Status: Needs review » Postponed

I am marking this as postponed.

Torenware’s picture

Status: Postponed » Needs review

#2793383: A multistep form example is missing in fapi_example was fixed a few days ago. Laissez les bons temps rouler!!

navneet0693’s picture

Assigned: Unassigned » navneet0693
Status: Needs review » Needs work

It will need a re-roll + some new additions.

navneet0693’s picture

Assigned: navneet0693 » Unassigned
Status: Needs work » Needs review
FileSize
5.72 KB

Rerolled and added MultiStep after Simple Form.

  • Mile23 committed 54e4179 on 8.x-1.x authored by navneet0693
    Issue #2840529 by navneet0693, eojthebrave, Torenware, andypost:...
Mile23’s picture

Status: Needs review » Fixed

The patch in #11 looks good.

I changed it so the route titles match the menu link titles which also match the link names on the page.

In the process I changed the names of some things, which might not be 100% for everyone, so please file a follow-up if I made a mistake.

Thanks, folks.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.