1

I am using entity queue module, Created a queue with a name ABC.

I want to add nodes automatically to this queue for a specific content type while creating new nodes.

Is there a way to do this?

3

Try Auto Entityqueue module to Automatically add entities to entityqueues.

0

Create a custom rule which calls a function like

/**
* Add a node to a subqueue
*/
function abc_queue_add_node_to_entityqueue($subqueue, $node){
  $existing_nodes = abc_entity_queue_get_subqeueue_nodes($subqueue);
  if (!in_array($node->nid, $existing_nodes)) {
    $subqueue->eq_node[LANGUAGE_NONE][] = array('target_id' => $node->nid);
    entityqueue_subqueue_save($subqueue);
  }
}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.