I've found a line of of code that makes the slider always display itself on top of other fields.
It's in slider.module, line 59:

  $node->content['slider']['#weight'] = -10;

We wanted to have the body displayed on top of the slider.
So I commented out the specific line and I was able to reorder the display of the fields as I wanted through CCK.
I see no abvious reason why this should be hard coded there.
Please, if there is something I have misunderstood correct me.
It seems that it works fine without it.

Jean-Paul

Comments

Mark Theunissen’s picture

Jean-Paul, you're right, there's no reason for it to be there. It's no longer an issue in the new version 2 of Slider.

The problem is that I can't remove this for historical reasons - people who's sites have relied on it won't be happy!

So I suggest using a node template file to reorder the fields manually if you want to use version 1 of Slider.

Thanks
Mark

Mark Theunissen’s picture

Status: Active » Closed (fixed)
tian.hack’s picture

Just to confirm: I'm using 6.x-1.4, so I can comment out this line of code without a problem? And the coming version 2 will not hard-code the weight, correct? Thanks!

Mark Theunissen’s picture

Yep!