Quantcast
Channel: drupal.org - Site administrators
Viewing all articles
Browse latest Browse all 426

Tree

$
0
0

The Tree module lets you easily order nodes with Entity Reference relationships using dragging in Views.

  1. Enable Views, Entity Reference, Tree and Tree Field
  2. Create a content type with an Entity Reference field (e.g. parent)
  3. Check the "Tree field" checkbox in the "ADDITIONAL BEHAVIORS" section and choose "Nested set" or "Simple" (FIXME:what is the difference?)
  4. Save the field and content type
  5. Create some nodes of this content type where the parent field references other nodes of this type
  6. Create a new view with that content type with a page display
  7. Add a URL for the page
  8. Add the content title to the fields
  9. Add the Entity Reference field (e.g. parent) to the fields
  10. Add a Tree: Draggable field to the fields
  11. Choose the Table format
  12. Save the view
  13. Go to the views page
  14. Drag around your nodes
  15. You will see that the Entity Reference field (e.g. parent) changes as you move around the nodes
  16. Click Save button to save the Entity Reference fields

Viewing all articles
Browse latest Browse all 426

Trending Articles