Been wondering why this is'nt a field? :) Or an integer field formatter?

Comments

nancydru’s picture

Because then standard node sorting doesn't work.

giorgio79’s picture

Thanks Nancy I am not sure I understand. Is this explained somewhere? I notice the frontpage talks about some sticky stuff, but I guess that can be another boolean field :)
So, I am just evaluating this module versus using a simple integer field with Draggable Views. Storing it as a simple integer field seems closer to native Drupal stuff.

nancydru’s picture

The node table in the database has a value for sticky, which together with "created," allow Drupal to sort "sticky DESC, created DESC" to get the normal node ordering. The Weight module takes the normal sticky column, which is a Boolean, and adds in the weight, so the normal sorts still work and take weights into account. This module actually pre-dates fields, so it could be seen as "more Drupally."

giorgio79’s picture

Status: Active » Closed (won't fix)

Thanks Nancy :) IMHO the field approach is more future proof :) especially that every listing will be based on Views in D8, and there you create any sorting in any order you can dream of. WIll keep on playing with this module a bit, but I may go with a simple integer field and a draggable view.