Currently there is no method other than modifying the publishing date to order a node. This becomes important mainly with the Top Sticky flag where the node is meant to provide first experience data. I would like to consider adding to the Publishing Options a Node Weight to add to the sorting criteria for the node display. I am thinking this node weight is only pertinent to the nodes with Sticky flag set but may be easier to implement for all settings. Do others see Node Weighting as beneficial? Earnie P.S.: This work would be for some future release beyond 6.x P.P.S.: I am not asking anyone else to do the work
A trivial implementation would be to maintain use of the sticky field in the nodes table but allow values beyond 0-1. That way, modules relying on zero/nonzero as previously would not see a change, while modules aware of additional values could choose to order such sticky nodes based on weight. ----- Original Message ----- From: "Earnie Boyd" <earnie@users.sourceforge.net> To: <development@drupal.org> Sent: Thursday, March 15, 2007 1:07 PM Subject: [development] Node Weighting
Currently there is no method other than modifying the publishing date to order a node. This becomes important mainly with the Top Sticky flag where the node is meant to provide first experience data. I would like to consider adding to the Publishing Options a Node Weight to add to the sorting criteria for the node display. I am thinking this node weight is only pertinent to the nodes with Sticky flag set but may be easier to implement for all settings. Do others see Node Weighting as beneficial?
Earnie P.S.: This work would be for some future release beyond 6.x P.P.S.: I am not asking anyone else to do the work
On Thursday, 15. March 2007, Earnie Boyd wrote:
Currently there is no method other than modifying the publishing date to order a node. This becomes important mainly with the Top Sticky flag where the node is meant to provide first experience data. I would like to consider adding to the Publishing Options a Node Weight to add to the sorting criteria for the node display.
Note that there are already two contrib modules that serve a similar purpose: - Weight (http://drupal.org/project/weight), and - nodeorder (http://drupal.org/project/nodeorder) If you want to get this into Drupal core, you might fetch some ideas from those.
Earnie, There is clearly a need for alternative ways of ordering nodes. The weight module does exactly what FGM said earlier in this thread. One of its limitations is that the granularity is still too coarse -- -100 for non-sticky, and 1 to 100, or something like that for sticky. Nodeorder only works within individual taxonomy categories. It adds a 'weight_in_tid' field to the term_node table. It has infinite granularity as far as ordering goes, but it is not universal across all nodes. The way it works is that it initializes weight_in_tid to the node's nid, and then, when nodes are ordered within a tid, their weight_in_tids are swapped or moved around. Whether or not this needs to be a core feature is probably up for debate. It seems that you could create a small contrib module that tacks on another weight field to each node, and then you could somehow use Views to make sure that your new weight is used all or most of the time..??.. Marc Jakob Petsovits wrote:
On Thursday, 15. March 2007, Earnie Boyd wrote:
Currently there is no method other than modifying the publishing date to order a node. This becomes important mainly with the Top Sticky flag where the node is meant to provide first experience data. I would like to consider adding to the Publishing Options a Node Weight to add to the sorting criteria for the node display.
Note that there are already two contrib modules that serve a similar purpose: - Weight (http://drupal.org/project/weight), and - nodeorder (http://drupal.org/project/nodeorder)
If you want to get this into Drupal core, you might fetch some ideas from those.
participants (4)
-
Earnie Boyd -
FGM -
Jakob Petsovits -
Marc Poris