From b37a1723199f4b0641627067dc0b6134a3b0be49 Mon Sep 17 00:00:00 2001 From: Lisa Felder Date: Wed, 8 Jul 2015 15:53:49 +0200 Subject: [PATCH] KKB-230 add more link to event-list and display only five items, link redirects to local library's events --- ding_event.views_default.inc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ding_event.views_default.inc b/ding_event.views_default.inc index 67fbc9d..43ed0ff 100644 --- a/ding_event.views_default.inc +++ b/ding_event.views_default.inc @@ -706,12 +706,13 @@ function ding_event_views_default_views() { /* Display: Library event list */ $handler = $view->new_display('panel_pane', 'Library event list', 'ding_event_library_list'); $handler->display->display_options['defaults']['use_more'] = FALSE; + $handler->display->display_options['use_more'] = TRUE; $handler->display->display_options['defaults']['link_display'] = FALSE; $handler->display->display_options['link_display'] = 'custom_url'; - $handler->display->display_options['link_url'] = 'arrangementer'; + $handler->display->display_options['link_url'] = 'bibliotek/!1/arrangementer'; $handler->display->display_options['defaults']['pager'] = FALSE; - $handler->display->display_options['pager']['type'] = 'full'; - $handler->display->display_options['pager']['options']['items_per_page'] = '10'; + $handler->display->display_options['pager']['type'] = 'some'; + $handler->display->display_options['pager']['options']['items_per_page'] = '5'; $handler->display->display_options['pager']['options']['offset'] = '0'; $handler->display->display_options['pager']['options']['id'] = '0'; $handler->display->display_options['pager']['options']['expose']['items_per_page_label'] = 'Number of elements';