Hi,
I have a page in three languages. In the view where I display all the nodes of a content type I can set a filter "Node translation:Language", "is one of" "Current user's langauge" or "No language". Untranslated content is show in every language and translated content only in its language.

Now I want to create a RSS feed of this view. How can I make it multilanguage? I have tried with the same options but it does not work. I have tried adding arguments, but in this way I cannot get untranslated content ("No language"). After searching the formus I have not got a solution. It is possible to do what I want? Im using Drupal 6.14 and Views 6.x-2.7. Thanks in advance.

Comments

merlinofchaos’s picture

Status: Active » Postponed (maintainer needs more info)

Turning a view into a feed view shoudln't have any effect on the filters, it should provide the same content.

Can you export the view(s) you're working with and explain precisely what you mean when you say 'does not work'?

sharlak’s picture

Hi,

Sorry for taking so long with the answer.

The thing is that when I put the view in a page it shows content in users's selected language and content with no language (selecting filters; "is one of" "Current user's langauge" or "No language").

Having these contents, for example:
Content 1 -> EN
Content 2 -> ES
Content 3 -> No language

When I navigate in English I see Content 1 and Content 3 and navigating in Spanish I see Content 2 and Content 3

When I generate a RSS Feed of this view (without changing anything) only "No language" content is displayed (in the example Content 3). I think that this can be logical, because as I am not using a web browser to view the content (I am using Thunderbird or any other RSS reader instead) $language variable must not be set. The question is... there is any way to pass my application language to Drupal or something like that?

I copy and paste the view below. In the Feed view I have changed "Current user's langauge" to "Spanish" so for now we are only getting RSS in Spanish, but it would be lovely to make it multilingual. Sorry for my bad English, I hope to make myself understood. Thanks.

$view = new view;
$view->name = 'news_list';
$view->description = 'Lista de Noticias en Página Interior';
$view->tag = '';
$view->view_php = '';
$view->base_table = 'node';
$view->is_cacheable = FALSE;
$view->api_version = 2;
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
$handler = $view->new_display('default', 'Defaults', 'default');
$handler->override_option('fields', array(
  'field_fecha_value' => array(
    'label' => '',
    'link_to_node' => 0,
    'label_type' => 'none',
    'format' => 'short',
    'multiple' => array(
      'group' => TRUE,
      'multiple_number' => '',
      'multiple_from' => '',
      'multiple_reversed' => FALSE,
    ),
    'exclude' => 0,
    'id' => 'field_fecha_value',
    'table' => 'node_data_field_fecha',
    'field' => 'field_fecha_value',
    'relationship' => 'none',
  ),
  'title' => array(
    'label' => '',
    'link_to_node' => 1,
    'exclude' => 0,
    'id' => 'title',
    'table' => 'node',
    'field' => 'title',
    'override' => array(
      'button' => 'Override',
    ),
    'relationship' => 'none',
  ),
));
$handler->override_option('sorts', array(
  'field_fecha_value' => array(
    'order' => 'DESC',
    'id' => 'field_fecha_value',
    'table' => 'node_data_field_fecha',
    'field' => 'field_fecha_value',
    'relationship' => 'none',
  ),
));
$handler->override_option('filters', array(
  'type' => array(
    'operator' => 'in',
    'value' => array(
      'new' => 'new',
    ),
    'group' => '0',
    'exposed' => FALSE,
    'expose' => array(
      'operator' => FALSE,
      'label' => '',
    ),
    'id' => 'type',
    'table' => 'node',
    'field' => 'type',
    'override' => array(
      'button' => 'Override',
    ),
    'relationship' => 'none',
  ),
  'status' => array(
    'operator' => '=',
    'value' => 1,
    'group' => '0',
    'exposed' => FALSE,
    'expose' => array(
      'operator' => FALSE,
      'label' => '',
    ),
    'id' => 'status',
    'table' => 'node',
    'field' => 'status',
    'override' => array(
      'button' => 'Override',
    ),
    'relationship' => 'none',
  ),
  'language' => array(
    'operator' => 'in',
    'value' => array(
      '***CURRENT_LANGUAGE***' => '***CURRENT_LANGUAGE***',
      '***NO_LANGUAGE***' => '***NO_LANGUAGE***',
    ),
    'group' => '0',
    'exposed' => FALSE,
    'expose' => array(
      'operator' => FALSE,
      'label' => '',
    ),
    'id' => 'language',
    'table' => 'node',
    'field' => 'language',
    'relationship' => 'none',
  ),
));
$handler->override_option('access', array(
  'type' => 'none',
));
$handler->override_option('cache', array(
  'type' => 'none',
));
$handler->override_option('title', 'Noticias');
$handler->override_option('use_pager', '1');
$handler->override_option('style_plugin', 'list');
$handler->override_option('row_options', array(
  'inline' => array(
    'field_fecha_value' => 'field_fecha_value',
    'title' => 'title',
  ),
  'separator' => '-',
));
$handler = $view->new_display('block', 'Bloque', 'block_1');
$handler->override_option('block_description', '');
$handler->override_option('block_caching', -1);
$handler = $view->new_display('page', 'Página de Noticias', 'page_1');
$handler->override_option('path', 'news-view');
$handler->override_option('menu', array(
  'type' => 'none',
  'title' => 'news',
  'description' => '',
  'weight' => '0',
  'name' => 'navigation',
));
$handler->override_option('tab_options', array(
  'type' => 'none',
  'title' => '',
  'description' => '',
  'weight' => 0,
));
$handler = $view->new_display('feed', 'Feed', 'feed_1');
$handler->override_option('arguments', array(
  'language' => array(
    'default_action' => 'ignore',
    'style_plugin' => 'default_summary',
    'style_options' => array(),
    'wildcard' => 'all',
    'wildcard_substitution' => 'Todos',
    'title' => '',
    'breadcrumb' => '',
    'default_argument_type' => 'fixed',
    'default_argument' => '',
    'validate_type' => 'none',
    'validate_fail' => 'ignore',
    'id' => 'language',
    'table' => 'node',
    'field' => 'language',
    'validate_user_argument_type' => 'uid',
    'validate_user_roles' => array(
      '2' => 0,
      '7' => 0,
      '5' => 0,
      '6' => 0,
      '4' => 0,
    ),
    'override' => array(
      'button' => 'Use default',
    ),
    'relationship' => 'none',
    'default_options_div_prefix' => '',
    'default_argument_user' => 0,
    'default_argument_fixed' => '',
    'default_argument_php' => '',
    'validate_argument_node_type' => array(
      'poll' => 0,
      'new' => 0,
      'page' => 0,
      'page_heading' => 0,
      'project' => 0,
      'project2' => 0,
      'story' => 0,
    ),
    'validate_argument_node_access' => 0,
    'validate_argument_nid_type' => 'nid',
    'validate_argument_vocabulary' => array(
      '4' => 0,
      '2' => 0,
      '1' => 0,
      '3' => 0,
    ),
    'validate_argument_type' => 'tid',
    'validate_argument_transform' => 0,
    'validate_user_restrict_roles' => 0,
    'validate_argument_php' => '',
  ),
));
$handler->override_option('filters', array(
  'type' => array(
    'operator' => 'in',
    'value' => array(
      'new' => 'new',
    ),
    'group' => '0',
    'exposed' => FALSE,
    'expose' => array(
      'operator' => FALSE,
      'label' => '',
    ),
    'id' => 'type',
    'table' => 'node',
    'field' => 'type',
    'override' => array(
      'button' => 'Override',
    ),
    'relationship' => 'none',
  ),
  'status' => array(
    'operator' => '=',
    'value' => 1,
    'group' => '0',
    'exposed' => FALSE,
    'expose' => array(
      'operator' => FALSE,
      'label' => '',
    ),
    'id' => 'status',
    'table' => 'node',
    'field' => 'status',
    'override' => array(
      'button' => 'Override',
    ),
    'relationship' => 'none',
  ),
  'language' => array(
    'operator' => 'in',
    'value' => array(
      '***NO_LANGUAGE***' => '***NO_LANGUAGE***',
      'es' => 'es',
    ),
    'group' => '0',
    'exposed' => FALSE,
    'expose' => array(
      'operator' => FALSE,
      'label' => '',
    ),
    'id' => 'language',
    'table' => 'node',
    'field' => 'language',
    'override' => array(
      'button' => 'Use default',
    ),
    'relationship' => 'none',
  ),
));
$handler->override_option('title', 'Noticias');
$handler->override_option('style_plugin', 'rss');
$handler->override_option('style_options', array(
  'mission_description' => FALSE,
  'description' => '',
));
$handler->override_option('row_plugin', 'node_rss');
$handler->override_option('row_options', array(
  'relationship' => 'none',
  'item_length' => 'fulltext',
));
$handler->override_option('path', 'feed');
$handler->override_option('menu', array(
  'type' => 'none',
  'title' => '',
  'description' => '',
  'weight' => 0,
  'name' => 'navigation',
));
$handler->override_option('tab_options', array(
  'type' => 'none',
  'title' => '',
  'description' => '',
  'weight' => 0,
));
$handler->override_option('displays', array(
  'default' => 0,
  'block_1' => 0,
  'page_1' => 0,
));
$handler->override_option('sitename_title', 0);
sharlak’s picture

Status: Postponed (maintainer needs more info) » Active

Sorry, I forgot to change the issue to active. Thanks.

esmerel’s picture

Status: Active » Closed (fixed)

No activity in 6 months