Closed (fixed)
Project:
Slider
Version:
6.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
23 Dec 2008 at 23:15 UTC
Updated:
6 Nov 2010 at 08:11 UTC
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
Comment #1
davexd commentedUpdate: 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?
Comment #2
Mark Theunissen commentedIn 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.
Comment #3
davexd commented@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!
Comment #4
Mark Theunissen commentedI may try integrate this ... if anyone has any experience, let me know!
http://drupal.org/node/321486
Comment #5
bocskay commented@davexd, can you please show the link where we can get the Advanced Node Reference?
Comment #6
irishgringo commentedi can not find the advanced nodes section either... what version of slider are you using?
I found it... never mind
Comment #7
irishgringo commentedCreate 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?
Comment #8
Mark Theunissen commentedComment #9
irishgringo commentedi 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.
Comment #10
Mark Theunissen commentedDocumentation added to README in -dev