SHARE
TWEET

views footer token replacement test

a guest Apr 22nd, 2016 32 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $view = new view();
  2. $view->name = 'test';
  3. $view->description = '';
  4. $view->tag = 'default';
  5. $view->base_table = 'node';
  6. $view->human_name = 'test';
  7. $view->core = 7;
  8. $view->api_version = '3.0';
  9. $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
  10.  
  11. /* Display: Master */
  12. $handler = $view->new_display('default', 'Master', 'default');
  13. $handler->display->display_options['title'] = 'test';
  14. $handler->display->display_options['use_more_always'] = FALSE;
  15. $handler->display->display_options['access']['type'] = 'perm';
  16. $handler->display->display_options['cache']['type'] = 'none';
  17. $handler->display->display_options['query']['type'] = 'views_query';
  18. $handler->display->display_options['exposed_form']['type'] = 'basic';
  19. $handler->display->display_options['pager']['type'] = 'full';
  20. $handler->display->display_options['pager']['options']['items_per_page'] = '10';
  21. $handler->display->display_options['style_plugin'] = 'default';
  22. $handler->display->display_options['row_plugin'] = 'node';
  23. /* Footer: Global: Unfiltered text */
  24. $handler->display->display_options['footer']['area_text_custom']['id'] = 'area_text_custom';
  25. $handler->display->display_options['footer']['area_text_custom']['table'] = 'views';
  26. $handler->display->display_options['footer']['area_text_custom']['field'] = 'area_text_custom';
  27. $handler->display->display_options['footer']['area_text_custom']['content'] = '[title]';
  28. $handler->display->display_options['footer']['area_text_custom']['tokenize'] = TRUE;
  29. /* Field: Content: Title */
  30. $handler->display->display_options['fields']['title']['id'] = 'title';
  31. $handler->display->display_options['fields']['title']['table'] = 'node';
  32. $handler->display->display_options['fields']['title']['field'] = 'title';
  33. $handler->display->display_options['fields']['title']['label'] = '';
  34. $handler->display->display_options['fields']['title']['alter']['word_boundary'] = FALSE;
  35. $handler->display->display_options['fields']['title']['alter']['ellipsis'] = FALSE;
  36. /* Sort criterion: Content: Post date */
  37. $handler->display->display_options['sorts']['created']['id'] = 'created';
  38. $handler->display->display_options['sorts']['created']['table'] = 'node';
  39. $handler->display->display_options['sorts']['created']['field'] = 'created';
  40. $handler->display->display_options['sorts']['created']['order'] = 'DESC';
  41. /* Filter criterion: Content: Published */
  42. $handler->display->display_options['filters']['status']['id'] = 'status';
  43. $handler->display->display_options['filters']['status']['table'] = 'node';
  44. $handler->display->display_options['filters']['status']['field'] = 'status';
  45. $handler->display->display_options['filters']['status']['value'] = 1;
  46. $handler->display->display_options['filters']['status']['group'] = 1;
  47. $handler->display->display_options['filters']['status']['expose']['operator'] = FALSE;
  48. /* Filter criterion: Content: Type */
  49. $handler->display->display_options['filters']['type']['id'] = 'type';
  50. $handler->display->display_options['filters']['type']['table'] = 'node';
  51. $handler->display->display_options['filters']['type']['field'] = 'type';
  52. $handler->display->display_options['filters']['type']['value'] = array(
  53.   'article' => 'article',
  54.   'page' => 'page',
  55. );
  56.  
  57. /* Display: Page */
  58. $handler = $view->new_display('page', 'Page', 'page');
  59. $handler->display->display_options['path'] = 'test';
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top