Feature #87798

Provide a way to sort entries of persistenceIdentifier dropdown in EXT:form's FE Plugin

Added by Peter no-lastname-given 7 months ago. Updated 7 months ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
Form Framework
Target version:
-
Start date:
2019-02-26
Due date:
% Done:

0%

PHP Version:
7.1
Tags:
Complexity:
easy
Sprint Focus:

Description

Hey guys,

I'm working on a project with > 50 forms that need to be migrated to EXT:form and realized the extension is lacking any feature to enable sorting for the dropdown in the FE plugin.

TYPO3\CMS\Form\Mvc\Persistence\FormPersistenceManager
is in charge of creating arrays for the dropdown that are processed by the
TYPO3\CMS\Form\Hooks\DataStructureIdentifierHook

The methods

FormPersistenceManager->retrieveYamlFilesFromStorageFolders()
and
FormPersistenceManager->retrieveYamlFilesFromExtensionFolders()
are in charge of the related arrays with items in a random order. If there was just an
asort()
for the returned array in place, one could structure the forms by some naming convention and improve the usability for editors a lot.

Cheers
Peter

History

#1 Updated by Peter no-lastname-given 7 months ago

I forgot to mention the Forms listed in Form Manager would benefit from this too!

Also available in: Atom PDF