Anyone have a tip on getting a view to list the uploaded files (attachments) to a node in the same order seen when editing the node? I have a node with 45 attachments and the list in view could not be shuffled any better! Jeff
Just off the top of my head (meaning I haven't seen if it's possible), but sort by fid (file_id) as those are auto_increment and so they would be in the order uploaded. ----- Adam A. Gregory Drupal Developer & Consultant Web: AdamAGregory.com Twitter: twitter.com/adamgregory Phone: 910.808.1717 Cell: 919.306.6138 On Thu, Jun 3, 2010 at 2:47 PM, Jeff Greenberg <jeff@ayendesigns.com> wrote:
Anyone have a tip on getting a view to list the uploaded files (attachments) to a node in the same order seen when editing the node? I have a node with 45 attachments and the list in view could not be shuffled any better!
Jeff
Well, the UI has uploaded weight as an available sort, but I don't know if it will actually sort within a row, as opposed to sorting rows, and I don't believe the uploaded order on the node is using weight. Fid doesn't seem to be an option. On 6/3/2010 2:56 PM, Adam Gregory wrote:
Just off the top of my head (meaning I haven't seen if it's possible), but sort by fid (file_id) as those are auto_increment and so they would be in the order uploaded.
Got it, although the solution is odder than the problem. Changing the order of one of the attachments, then changing it back, and re-saving the node. I'm looking forward to passing along those instructions...salt over the shoulder and spin 3 times :-)
participants (2)
-
Adam Gregory -
Jeff Greenberg