2

As the title describes, I want to create a mechanism with which a bunch of Content Types can be sorted 'easily' so they can be presented with a View according to that sorting.

Adding an Integer that would act as 'weight' should work but can end up being confusing if the number of nodes get's too high.

Ideally some sort of 'tablesorting' would be sweet.

Is there a way to accomplish such a thing?

Thanks in advance.

closed as off-topic by kiamlaluno Sep 22 '15 at 8:53

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions asking to recommend or find a book, tool, module, theme, distribution, tutorial, or other off-site resource are off-topic for Drupal Answers as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it." – kiamlaluno
If this question can be reworded to fit the rules in the help center, please edit the question.

4

Here is a "Comparison of Node Ordering Modules".

I have tested most of these modules and decided to go with the Weight module because it was easier to implement and slightly faster then all the other module because it does not add any table joins to your queries since it is re-using the node's sticky field. It includes a very easy to setup Views plugin for drag-n-drop sorting. The Weight module is designed to 'sort nodes', while DraggableViews is designed to 'sort anything'.

  • Of what i can see, Weight 1.x (stable) only adds a counter in the nodes themselves. While it does what it should, it doesn't offer the ease of use that i'd like to offer the site's admins ideally, a tabledrag sort-of thing. – magtak Jan 19 '12 at 12:30
  • 1
    In D6 it includes a 'Weight Changer' display. It is safe to assume that this feature was upgraded, but maybe reworked, for D7. – jrockowitz Jan 19 '12 at 12:45
2

DraggableViews allows you to create any list based on a View, and then renders Drupals regular drag-handles system over that. My experience with D6 is good, when I last tried it in D7 it was a bit buggy, though that should work out soon enough if not already.

  • Yeah, a friend suggested draggableviews too but i am using views 3.x and not only is it in .dev state for D7, but it's also for views 2.x :( – magtak Jan 19 '12 at 8:40
  • Where does it say it's only for Views 2? By reading the issue queue it seems like this is just not true. – Letharion Jan 19 '12 at 8:47
  • 7.x-2.x-dev tar.gz (13.51 KB) | zip (17.48 KB) 2012-Jan-19 Notes – magtak Jan 19 '12 at 8:53
  • 1
    The version number of the draggableviews module has nothing to do with the Views version. In fact, if you look in the draggableviews.module file, the very first function they implement is hook_views_api, which clearly declares version 3 support. – Letharion Jan 19 '12 at 9:10
0

My old-web-style solution is to add the weight handly by editing the machine name of the content type (1_nodetypetosortfirst, 2_nodetypetosortsecond, etc.) and then sorting by content types (asc).

That's the easiest solution I found.

But better think twice the order (and validate it) because if you need to change later the machine name, it might be painful.

Oh yep, and I forget : group the result by the field content type if you want to have something like : content type 1 - result - result - result / content type 2 - result - result ...

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