1 |
c169e7c4
|
Assos Assos
|
<?php
|
2 |
|
|
|
3 |
|
|
// $Id$
|
4 |
|
|
|
5 |
|
|
/*
|
6 |
|
|
* View 'advanced_forum_search'
|
7 |
|
|
*/
|
8 |
|
|
|
9 |
|
|
$view = new view();
|
10 |
|
|
$view->name = 'advanced_forum_search';
|
11 |
|
|
$view->description = '';
|
12 |
|
|
$view->tag = 'default';
|
13 |
|
|
$view->base_table = 'node';
|
14 |
|
|
$view->human_name = 'Advanced Forum Search';
|
15 |
|
|
$view->core = 7;
|
16 |
|
|
$view->api_version = '3.0';
|
17 |
|
|
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
|
18 |
|
|
|
19 |
|
|
/* Display: Master */
|
20 |
|
|
$handler = $view->new_display('default', 'Master', 'default');
|
21 |
|
|
$handler->display->display_options['title'] = 'Advanced Forum Search';
|
22 |
|
|
$handler->display->display_options['use_more_always'] = FALSE;
|
23 |
|
|
$handler->display->display_options['access']['type'] = 'perm';
|
24 |
|
|
$handler->display->display_options['cache']['type'] = 'none';
|
25 |
|
|
$handler->display->display_options['query']['type'] = 'views_query';
|
26 |
|
|
$handler->display->display_options['exposed_form']['type'] = 'basic';
|
27 |
|
|
$handler->display->display_options['pager']['type'] = 'full';
|
28 |
|
|
$handler->display->display_options['pager']['options']['items_per_page'] = '25';
|
29 |
|
|
$handler->display->display_options['style_plugin'] = 'default';
|
30 |
|
|
$handler->display->display_options['row_plugin'] = 'fields';
|
31 |
|
|
/* Field: Content: Title */
|
32 |
|
|
$handler->display->display_options['fields']['title']['id'] = 'title';
|
33 |
|
|
$handler->display->display_options['fields']['title']['table'] = 'node';
|
34 |
|
|
$handler->display->display_options['fields']['title']['field'] = 'title';
|
35 |
|
|
$handler->display->display_options['fields']['title']['label'] = '';
|
36 |
|
|
$handler->display->display_options['fields']['title']['alter']['word_boundary'] = FALSE;
|
37 |
|
|
$handler->display->display_options['fields']['title']['alter']['ellipsis'] = FALSE;
|
38 |
|
|
/* Field: Content: Body */
|
39 |
|
|
$handler->display->display_options['fields']['body']['id'] = 'body';
|
40 |
|
|
$handler->display->display_options['fields']['body']['table'] = 'field_data_body';
|
41 |
|
|
$handler->display->display_options['fields']['body']['field'] = 'body';
|
42 |
|
|
$handler->display->display_options['fields']['body']['label'] = '';
|
43 |
|
|
$handler->display->display_options['fields']['body']['element_label_colon'] = FALSE;
|
44 |
|
|
$handler->display->display_options['fields']['body']['type'] = 'text_summary_or_trimmed';
|
45 |
|
|
$handler->display->display_options['fields']['body']['settings'] = array(
|
46 |
|
|
'trim_length' => '600',
|
47 |
|
|
);
|
48 |
|
|
/* Sort criterion: Content: Post date */
|
49 |
|
|
$handler->display->display_options['sorts']['created']['id'] = 'created';
|
50 |
|
|
$handler->display->display_options['sorts']['created']['table'] = 'node';
|
51 |
|
|
$handler->display->display_options['sorts']['created']['field'] = 'created';
|
52 |
|
|
$handler->display->display_options['sorts']['created']['order'] = 'DESC';
|
53 |
|
|
/* Filter criterion: Content: Published */
|
54 |
|
|
$handler->display->display_options['filters']['status']['id'] = 'status';
|
55 |
|
|
$handler->display->display_options['filters']['status']['table'] = 'node';
|
56 |
|
|
$handler->display->display_options['filters']['status']['field'] = 'status';
|
57 |
|
|
$handler->display->display_options['filters']['status']['value'] = 1;
|
58 |
|
|
$handler->display->display_options['filters']['status']['group'] = 1;
|
59 |
|
|
$handler->display->display_options['filters']['status']['expose']['operator'] = FALSE;
|
60 |
|
|
/* Filter criterion: Search: Search Terms */
|
61 |
|
|
$handler->display->display_options['filters']['keys']['id'] = 'keys';
|
62 |
|
|
$handler->display->display_options['filters']['keys']['table'] = 'search_index';
|
63 |
|
|
$handler->display->display_options['filters']['keys']['field'] = 'keys';
|
64 |
|
|
$handler->display->display_options['filters']['keys']['exposed'] = TRUE;
|
65 |
|
|
$handler->display->display_options['filters']['keys']['expose']['operator_id'] = 'keys_op';
|
66 |
|
|
$handler->display->display_options['filters']['keys']['expose']['label'] = 'Search Terms';
|
67 |
|
|
$handler->display->display_options['filters']['keys']['expose']['operator'] = 'keys_op';
|
68 |
|
|
$handler->display->display_options['filters']['keys']['expose']['identifier'] = 'keys';
|
69 |
|
|
$handler->display->display_options['filters']['keys']['expose']['remember_roles'] = array(
|
70 |
|
|
2 => '2',
|
71 |
|
|
1 => 0,
|
72 |
|
|
3 => 0,
|
73 |
|
|
);
|
74 |
|
|
/* Filter criterion: Content: Has taxonomy terms (with depth) */
|
75 |
|
|
$handler->display->display_options['filters']['term_node_tid_depth']['id'] = 'term_node_tid_depth';
|
76 |
|
|
$handler->display->display_options['filters']['term_node_tid_depth']['table'] = 'node';
|
77 |
|
|
$handler->display->display_options['filters']['term_node_tid_depth']['field'] = 'term_node_tid_depth';
|
78 |
|
|
$handler->display->display_options['filters']['term_node_tid_depth']['exposed'] = TRUE;
|
79 |
|
|
$handler->display->display_options['filters']['term_node_tid_depth']['expose']['operator_id'] = 'term_node_tid_depth_op';
|
80 |
|
|
$handler->display->display_options['filters']['term_node_tid_depth']['expose']['label'] = 'Has taxonomy terms (with depth)';
|
81 |
|
|
$handler->display->display_options['filters']['term_node_tid_depth']['expose']['operator'] = 'term_node_tid_depth_op';
|
82 |
|
|
$handler->display->display_options['filters']['term_node_tid_depth']['expose']['identifier'] = 'term_node_tid_depth';
|
83 |
|
|
$handler->display->display_options['filters']['term_node_tid_depth']['expose']['remember_roles'] = array(
|
84 |
|
|
2 => '2',
|
85 |
|
|
1 => 0,
|
86 |
|
|
3 => 0,
|
87 |
|
|
);
|
88 |
|
|
$handler->display->display_options['filters']['term_node_tid_depth']['type'] = 'select';
|
89 |
|
|
$handler->display->display_options['filters']['term_node_tid_depth']['vocabulary'] = 'forums';
|
90 |
|
|
$handler->display->display_options['filters']['term_node_tid_depth']['hierarchy'] = 1;
|
91 |
|
|
$handler->display->display_options['filters']['term_node_tid_depth']['depth'] = '0';
|
92 |
|
|
/* Filter criterion: Content: Type */
|
93 |
|
|
$handler->display->display_options['filters']['type']['id'] = 'type';
|
94 |
|
|
$handler->display->display_options['filters']['type']['table'] = 'node';
|
95 |
|
|
$handler->display->display_options['filters']['type']['field'] = 'type';
|
96 |
|
|
$handler->display->display_options['filters']['type']['value'] = array(
|
97 |
|
|
'forum' => 'forum',
|
98 |
|
|
);
|
99 |
|
|
|
100 |
|
|
/* Display: Page */
|
101 |
|
|
$handler = $view->new_display('page', 'Page', 'page');
|
102 |
|
|
$handler->display->display_options['path'] = 'forum/search';
|
103 |
|
|
$translatables['advanced_forum_search'] = array(
|
104 |
|
|
t('Master'),
|
105 |
|
|
t('Advanced Forum Search'),
|
106 |
|
|
t('more'),
|
107 |
|
|
t('Apply'),
|
108 |
|
|
t('Reset'),
|
109 |
|
|
t('Sort by'),
|
110 |
|
|
t('Asc'),
|
111 |
|
|
t('Desc'),
|
112 |
|
|
t('Items per page'),
|
113 |
|
|
t('- All -'),
|
114 |
|
|
t('Offset'),
|
115 |
|
|
t('« first'),
|
116 |
|
|
t('‹ previous'),
|
117 |
|
|
t('next ›'),
|
118 |
|
|
t('last »'),
|
119 |
|
|
t('Search Terms'),
|
120 |
|
|
t('Has taxonomy terms (with depth)'),
|
121 |
|
|
t('Page'),
|
122 |
|
|
);
|