I have a view showing all nodes of a content type (Book pages). I need to sort these nodes in a drag and drop way, so I installed Entityqueue.

  1. On Structure > EntiyQueues, I added a new entityqueue (book_pages_entity_queue) with the default reference method and no sorting.
  2. I edited the view and added a relationship to that entityqueue.
  3. I also added a lessermost sorting criteria (content-queue-position(ascending)).

This is the farthest I got attempting to sort the view items by drag and drop (or at least some other "free" way, which will be different from the more "rigid" basic ways to sort with a view).

Is it even possible to get the sorting I desire? If so, how?

closed as unclear what you're asking by kiamlaluno Sep 2 at 9:40

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • The question doesn't say what your desired sorting is, so answering this question is not possible. As a matter of fact, the answer here is repeating what already said in the answer for drupal.stackexchange.com/questions/268555/…, but without screenshots. if you are accepting the answer here it means that the answer given for the other question was already sufficient for you. – kiamlaluno Sep 2 at 9:44
  • I don't think anyone here doesn't know what drag and drop is... Otherwise I totally miss your point. – JohnDoea Sep 2 at 10:20
  • The problem is not knowing what drag and drop means, but what you mean with the sorting I desire, which is not something you described. – kiamlaluno Sep 2 at 11:04
  • If by the sorting I desire you simply mean sorting by drag-and-dropping elements in a list, the previous question already got an answer about that. Since that answer has been accepted from you, this new question was not necessary. You just had to wait for users to answer your previous question. Otherwise, if that answer doesn't help you, you should not accept it. – kiamlaluno Sep 2 at 11:07
  • As general suggestion, before asking a question very similar to a question you already asked, I would wait to get an answer from the first question. Then, instead of asking a new question when the older one is still not answered, you can edit the old one to make it clearer. It's after getting an answer that the question cannot be edited, if the edits change the answer users would give. – kiamlaluno Sep 2 at 11:10
up vote 1 down vote accepted

With the Entityqueue module, the drag-and-drop reordering is happening on the Entityqueue side.

From admin/structure/entityqueue, you can:

  1. Add an entityqueue and configure its setting
  2. Add items to an entityqueue and reorder them clicking on Edit items
  • Oh, it seems I need to add them one by one, this could be a bit "saddening" when there are many pieces of content. Is there any way to automate the pulling of all nodes of my content type --- inside Entityqueue? – JohnDoea Sep 1 at 14:19
  • Not only I need to add these one by one, I must find their NID or alias, which is extremely uncomfortable. – JohnDoea Sep 1 at 14:23
  • you should give draggableviews a try as I said on the other answer ... entityqueue was only an alternative method but inferior method of doing what you wanted – GiorgosK Sep 1 at 14:38
  • Dear GiorgosK, I'd wish to do so but the module seems not to work in Drupal 8.5.6: drupal.stackexchange.com/questions/268542/… – JohnDoea Sep 1 at 15:01

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