Hi there,

I'm not sure if this is a Slider issue, or if its in the nodereference field, so feel free to pass me on.

At the moment, everything works great (awesome module), but all my nodes in the slider appear alphabetically.

Is there a way I can re-order them based on menu order?

Dave

Comments

davexd’s picture

Update: I've already tried to re-order the nodes with the nodereference field, but it looks like it can't be done (http://drupal.org/node/335544). Any other suggestions?

Mark Theunissen’s picture

In the past, we have simply renamed the nodes so that they appear in the order we require them. I understand this is not optimal. I'll look into something better.

davexd’s picture

@mark, I've managed to re-order the nodes using Advanced Node Reference and Views. Feel free to add this to the Docu.

To order your nodes, you'll need to create the list of nodes in Views. However, you'll have a LOT of nodes to choose from, so you'll need to find a way to filter out the nodes that are intended to be on your slider.

Create a new node type, a "Slider Panel", and make it just like a page. You'll need to add one CCK field, an integer field, that will be your "Panel Order".

Create a few pages of content with your "Slider Panel" node type. In the "Panel Order" field of each node, set a number to define the node's order in the slider. 1 will be first, 99 will be last.

Now, create a view:
Under Fields add Node ID and Node Title.
Under Sort Criteria add your CCK Panel Order (the integer field) and sort Ascending.
Under Filters add Node Type and select your Slider Panel Node Type.
Save the view & you're almost done.

Now, go and edit the Content Type of your Slider (the one that actually creates the slider). (It should be somewhere like admin/content/node-type/XXXX where XXXX is your node type). Right down the bottom, you'll see "Advanced - Nodes that can be referenced (View)", click and expand it, then select the view that you just created.

Finally, go and create a new node with the Node Type you just edited. You should be able to select the nodes from your view - and they'll be in order!

Mark Theunissen’s picture

I may try integrate this ... if anyone has any experience, let me know!

http://drupal.org/node/321486

bocskay’s picture

@davexd, can you please show the link where we can get the Advanced Node Reference?

IrishGringo’s picture

i can not find the advanced nodes section either... what version of slider are you using?
I found it... never mind

IrishGringo’s picture

Create a new node type, a "Slider Panel" - could you comment on this please... your saying to create a CCK type... NOT a PANEL TYPE as in PANELS.MODULE...? corect?

Mark Theunissen’s picture

Title: How do I re-order the nodes in my slider? » Add documentation about reordering slides using views.
IrishGringo’s picture

i did this by including a cck number field, and sorting on that field in views for my slider. Then I select that view in the Slider Container. But here is the RUB. The slider seems to cache the view, which threw me for a loop for a while, as I would change my view, or my node number, and nothing would happen. the view would change, but the slider would not. I found the solution was that I had to physically edit a node. then it seemed to update the slider. But it works awsome now.

Mark Theunissen’s picture

Status: Active » Fixed

Documentation added to README in -dev

Status: Fixed » Closed (fixed)

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