-1

I have a question related to draggableview (DV) integrated in Drupal 9. How can I save DV weight field value in other content type field called "field_priority" ?

I found this info but it's using form submit event to get the field value. not clear about how I can integrate this code into my custom module. save weight field value

DV custom view

enter image description here

Content Types custom field

enter image description here

2
  • Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking.
    – Community Bot
    Aug 3 at 13:22
  • hi, finally I solved the issue. thanks. Aug 4 at 15:15

1 Answer 1

1

This is what I did to solve the requirement. Installed a module called Sortableview This one is similar to Draggableview module except it can save the position value ( After drag and drop the question ) into custom content type field.

Here are the steps:

  • composer installed the Sortableview module
  • create a new integer field called field_priority (content type)
  • added that field as a sorting criteria to the custom Drupal view
  • added Sortableviews: Drag and drop handler as a field to the custom view
  • change the format to the Sortable table
  • finally added the Save Sortableviews changes handler to the footer of the custom view

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.