" It uses the node table's 'sticky' column to store weights as well as sticky information (so that feature is not lost)."

I changed the weights on a couple of nodes (via Content). Values offered where in the range 0 to -20 (minus 20).
But looking at the DB, sticky for these nodes is still 0. If I edit the individual node I can see the correct new weight, e.g. -8. etc. in the Weight tab.
In my Views the same story. I changed it to sort on sticky and then date. But the sticky had no effect. Then I saw the Weight option and added that instead. Now the page works as desired.
So my View is OK.

My question is: how to handle the weight in my own views_query_alter.
I had some sql code ready sorting on node.sticky - but it has no effect, sticky is always 0.
Do I have to JOIN on something? Can't see a weight table in the DB, or a weight column in node.

Very mysterious!
Help appreciated

Comments

jamescook’s picture

It helps to scroll down in the DB view. weights_weight tables were there all along.

Might I suggest changing the description of this module on the module page. The text seems to suggest that the sticky column itself is being used.

"It uses the node table's 'sticky' column to store weights as well as sticky information (so that feature is not lost)."

jamescook’s picture

Category: Support request » Task

Change module description

davisben’s picture

Status: Active » Fixed

The project page has been updated.

fugazi’s picture

sorry wrong contributory. comment was meant for https://drupal.org/node/2148005

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.