Skip Navigation

[Resolved] Ordering a many to many relationship by drag and drop

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

This topic contains 3 replies, has 2 voices.

Last updated by Nigel 1 year, 2 months ago.

Assisted by: Nigel.

Author
Posts
#2641027
Capture d’écran 2023-09-05 à 17.04.10.png

Hello team,

I added a simple "film_order" but it is not intuitive to edit film metas and film_order meta.
How to simply drag and drop to order the films ?

Best regards, Wilhem

#2641279

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi Wilhem

I'm sorry to say there isn't any such functionality availability, and it's not something that can be enabled with a few lines of JavaScript or anything similar.

The only thing I could suggest is to use a plugin that adds drag and drop re-ordering of posts. That would normally work by changing the menu_order field value for each post, which could then be used for sorting the posts when displayed.

But that would only work in the normal list of post screens in the WordPress back end, i.e. when listing all Films in the back end, not in the context of the post relationship UI shown in your screenshot.

#2641303

Hi Nigel,

This need seems so obvious that it's strange that it's not handled by toolset.

Anyway, can you help me by finding an easier way to edit the metas linked to that relationship. Edit is editing the Film, Quick edit is working, but I don't want to edit the films metas, only the relationship metas.

Best regards,
Wilhem

#2641389

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Screenshot 2023-09-06 at 15.14.51.png

When you click the Quick Edit link from the relationship UI you should be presented with the relationship fields, as you can see in my screenshot.

(You can also optionally edit fields from the connected post.)

#2642409

Ok thank you Nigel ; that’s what I did but it’s definitely not user friendly..