Improvement: Sort order if fields in Editing the Admin View #147
Labels
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: joomla/Component-Builder#147
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
It would be nice to sort the fields in the order I set them to display in the admin view in the attached view:
The automated sort of the fields has been removed since you can with the subform drag and drop the fields in the correct order very easy.
To avoid us change you own selected order, we removed the feature.
So do we need the "Order in Edit" if Drag and Drop works?
yes the drag and drop does work 👍
You still need to set the order for edit and order for list, as those orders are for the compiler. The drag and drop is just for you... :)
Ok, so what I was thinking is we just have one and not both sorts. Unless there's a reason that someone would want them to be different.
It's not a big deal it was just something that was counter intuitive to me that after I changed the sort order in "Order edit" I was expecting to see them listed in that order after I saved it.
I do not have one view where those are the same. So of course we want them both, they target two different concepts. The one for the list layout and the other for the edit layout in a tab and position.
Hey we can always add the sort feature back.. if you are up to the task.
Look here is the old code that sorted the fields on save.
Convert it to now work on the new admin_fields. This is the issue that we last addressed this.
This is the area (from line 815 in the admin_fields model) the code must go.
So adapt the code, test it, and once you think it works as you expected, share it in this issue. Then I will test it and add it to the core once we are sure it works.
I thought it was just a simple matter of a query that was returning the results in this image and we would just sort by "Order edit" column. But if it's more complicated than that we can leave it as is.
Doing it in the returned results could cause confusion. Since we will display the data in away that is not true to how it is stored. Then once the user opens the fields it will look strange and not in the same order. SO the way is to do it in the model on save, to insure that we have consistency.
This is not complex... I just don't have time now. Your help with this will be wonderful.
Ok, got it. I didn't realize that the two sorts served different purposes.
Hi guys, I have not tested this.
But this should work.
Thanks, I will add that 👍