Using multiple Feedapi feed types creates a block for each type. However, when adding a feed, Feedapi always uses the default feedapi_node rather than the feed type depicted by the block.

Comments

aron novak’s picture

Status: Active » Fixed

I solved the bug. But i assume there is a more elegant way to do.
The problem came from the same FormID for multiple forms. I don't know how can i fix this in a Drupal way. Overwriting the internal #id property doesn't help.

$feed_type = (string)$_POST['node']['type'];
$valid_types = array_keys(_feedapi_content_types_list());
foreach ($valid_types as $type) {
   if ($type === $feed_type) {
     $node_template->type = $type;
   }
}
Anonymous’s picture

Status: Fixed » Closed (fixed)

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