Ajout d'un flux à la vue Blog
authorFelip Manyer i Ballester <git@res-telae.cat>
Sat, 26 Oct 2013 17:29:45 +0000 (19:29 +0200)
committerFelip Manyer i Ballester <git@res-telae.cat>
Sat, 26 Oct 2013 17:29:45 +0000 (19:29 +0200)
modules/features/fonamental_blog/fonamental_blog.views_default.inc

index e5b9dfe..36c54f0 100644 (file)
@@ -81,6 +81,14 @@ function fonamental_blog_views_default_views() {
   $handler->display->display_options['menu']['name'] = 'main-menu';
   $handler->display->display_options['menu']['context'] = 0;
   $handler->display->display_options['menu']['context_only_inline'] = 0;
+
+  /* Display: Flux */
+  $handler = $view->new_display('feed', 'Flux', 'feed_1');
+  $handler->display->display_options['pager']['type'] = 'none';
+  $handler->display->display_options['pager']['options']['offset'] = '0';
+  $handler->display->display_options['style_plugin'] = 'rss';
+  $handler->display->display_options['row_plugin'] = 'node_rss';
+  $handler->display->display_options['path'] = 'blog.xml';
   $translatables['blog'] = array(
     t('Master'),
     t('Blog'),
@@ -98,6 +106,7 @@ function fonamental_blog_views_default_views() {
     t('suivant ›'),
     t('dernier »'),
     t('Page'),
+    t('Flux'),
   );
   $export['blog'] = $view;