简体   繁体   中英

Sonata admin position field

I have a Slide Entity which has a position field. I use this Entity to display a SlideShow in a frontend page.

So what I want to do in the admin dashboard is to be able to drag n drop each slide and set correct numbers in position fields.

I saw there are a "sortable" option in ManyToOne relation. But here I don't have ManyToOne relation.

Thanks !

Is this discussion of any help to you? I also remember that Sonata Page Bundle uses drag and drop sorting in one of its admins. Currently demo.sonata-project.org does not work, but you can check it later if you don't want to install Sonata sandbox or Sonata Page Bundle yourself.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM