Hi,

I have the following problem: I have a node queue that contains a lot of nodes that have the same title and are from the same author. So reordering them in the queue is quite challenging.

Is there a way to display more infos than just the title?

Markus

Comments

ezra-g’s picture

Title: How to display CCK fields in the node queue edit view » Display CCK fields while manipulating a queue

Not currently, although having fields display on the queue manipulation would be a great feature request. It could provide, for example, a new way of creating image galleries.

Another thought is that "move up/move down" links could be added to node teasers which are displayed in some kind of View that, when the links are clicked, could refresh the list of teasers so the teasers would appear in the new queue order.

markusH’s picture

Cool idea ezra-g. The gallery thing is exactly my problem right now.

Yeah, the most flexible solution would be to have a special view-type where we can add whatever is needed from the nodes. and a column for the "move up/down" controls.

I alway try to make the backend as easy and uncluttered as possible for the users. So, this would be a huge step forward.

Would it make sense for now to introduce a theme_nodequeue_arrange_subqueue_entry_title function?

neoliminal’s picture

neoliminal’s picture

Perhaps a theming solution is best here. This allows people to add any columns they want to associate with a nodequeue reference, regardless of the content of that nodequeue entry.

I was basically doing that with my previous solution here:
http://drupal.org/node/371695

This was for a gallery solution.

ezra-g’s picture

Category: feature » support
Status: Active » Fixed

Thanks for pointing to your solution, @neoliminal. This feature could be implemented in a configurable fashion with the solution proposed in #299111: Display CCK fields while manipulating a queue.

stormsweeper’s picture

I actually handled this (for photo gallery nodequeues) by using hook_form_alter, although the code looks pretty similar:

/**
 * Implementation of hook_form_alter().
 */
function custommodule_form_alter(&$form, $form_state, $form_id) {
  // arrange subqueues forms
  if ($form_id == 'nodequeue_arrange_subqueue_form') {
    $nids = element_children($form);
    foreach ($nids as $nid) {
      if (isset($form[$nid]['title'])) {
        $node = node_load($nid);
        
        switch($node->type) {
          case 'photo':
            $title = 
              theme('imagecache', 'arrange_icon', $node->field_photo_thumb[0]['filepath'])
              . '<br/>' . $node->title;
            $form[$nid]['title']['#value'] = l($title, 'node/'. $node->nid, array('html' => true));
            break;
            
          case 'video':
            $title = 
              theme('imagecache', 'arrange_icon', $node->field_video_thumb[0]['filepath'])
              . '<br/>' . $node->title;
            $form[$nid]['title']['#value'] = l($title, 'node/'. $node->nid, array('html' => true));
            break;
            
          case 'portfolio':
            $photo = node_load($node->field_cover[0]['nid']);
            $title = 
              theme('imagecache', 'arrange_icon', $photo->field_photo_thumb[0]['filepath'])
              . '<br/>' . $node->title;
            $form[$nid]['title']['#value'] = l($title, 'node/'. $node->nid, array('html' => true));
            break;
        }
        
      }
    }
  }
}

I'm not huge fan of N+1 solutions, but it works well enough.

Status: Fixed » Closed (fixed)

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