Drupal Answers is a question and answer site for Drupal developers and administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Can anyone please help me that, how I can reorder the nodes in Drupal 7 using drag and drop feature?

share|improve this question
up vote 5 down vote accepted

Create a view to list your nodes and use Drupal draggable views module to order your nodes.

From the documentation page,

  • Order any type of entity
  • Set different order for different set of arguments
  • Create one view that sets the order, and create as many views as you like that shows that order
  • Use core tabledrag.js or jQuery UI draggable javascripts to set the order

Steps to use this module and views to order nodes:

  • Download draggable views and views module and enable in your site.
  • Create a view to list your nodes say field will be node title and choose Format as Table.
  • Add draggable fields as additional field in Fields section. You can use submit as well as ajax submit once you ordered your nodes.
  • Add Draggable weight as ascending order in sort criteria. enter image description here

  • Save the view and view it in the page.

  • My list will be like this: enter image description here
    • Drag and drop the pointer to order the nodes and hit submit. enter image description here
share|improve this answer
    
its not providing drag and drop facility for nodes – Vikram8888 Jan 11 at 13:14
    
How you are checking this? Have u created a view with draggable views as format? – Manikandan Jan 11 at 13:17
    
on my website i m also looking for the module for odering nodes..but this module is not providing any option fr drop and drag – Vikram8888 Jan 11 at 13:19
    
I am looking for module which provide drag and drop facilty in UI to reorder your content or nodes – Vikram8888 Jan 11 at 13:21
1  
@SaeedAfzal I edited my answer. Please check. – Manikandan Jan 13 at 6:25

There are many modules for this purpose. You can use Node Order module

The nodeorder module gives users an easy way to order nodes within their taxonomy terms.

By default, the taxonomy module orders listings of nodes by stickiness and then by node creation date -- most recently posted nodes come first.

Or to choose from the list of modules for this purpose, you can have a look at the Comparison of Node/Entity Ordering Modules page.

share|improve this answer
    
I did installed this module Node Order. But I cannot see the drag and drop icon on admin/content screen. Can you please help that how I can fix it to reorder of my multiple nodes? – Saeed Afzal Jan 12 at 13:01
1  
FYI, the drag & drop feature won't be available in admin/content page. You can order using 'per-vocabulary basis' or by creating a view for that. Kindly go through the documentation for the module at drupal.org/project/nodeorder – Suresh R Jan 12 at 13:26

Nodequeue module was built exactly for the same reason :)

The Nodequeue module allows users to collect nodes in an arbitrarily ordered list. The order in the list can be used for a any purpose, such as:

  • A block listing teasers for the five top news stories on a site
  • A user’s favorite music albums
  • A group of favorite from which one is randomly displayed

Nodequeue provides a simple drag-and-drop interface to manually order any queue. Additionally, it allows nodes to be added and removed from queues without needing edit permissions to the node. Nodes can be added to queues either from a queue management tab or by links on the node teaser.

Follow this tutorial to create a nodequeue.

share|improve this answer
    
Yes, nodequeue is especially useful if you want to hand-pick a selection of nodes. When you need to order all nodes (or all of a certain node type) Draggable Views makes more sense IMO. – marcvangend Jan 29 at 14:12

There is a comparison of "node ordering modules" at https://www.drupal.org/node/398508

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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