Views rendezés checkbox alapján

ssysco képe

Sziasztok!

Van egy hír nevű cck-m, ebben van egy fontos hír nevű szöveg. Ez a szöveg típus egy checkbox. Ez arra hivatott, hogy ha egy hír valamiért kiemeltebb a többinél, akkor előrébb kerüljön majd.
A híreket dátum alapján szeretném rendezni, de előtte ez a checkbox alapján.

A gond ott van, hogy valamiért nem veszi figyelembe a checkbox tartalmát a rendezés. Illetve figyelembe veszi, de még nem jöttem rá hogyan :)

Bármilyen ötletet szívesen fogadok!
Küldjek exportot?

Melyik modulhoz, modulokhoz kapcsolódik a téma?: 
Drupal verzió: 
szantog képe

Akkor asszem, ezt neked írtam: http://szantogabor.com/hirek/boolean-igazhamis-ertekek-kezelese-cck-val ha szűrőre működik, rendezésre is kell működjön.

0
0

----
Rájöttem, miért kérdezek olyan ritkán a drupal.hu-n. Amíg szedem össze az infokat a kérdéshez, mindig rájövök a megoldásra.

ssysco képe

nemsokára ki fogom próbálni

0
0
aboros képe

pontosan lehet látni mit csinálsz és úgy segíteni is lehetséges.

0
0

-
clear: both;

ssysco képe

Csak az alapértelmezett nézetet meg a konkrétat másolom ide (van még másik kettő nézet, azok nem hiszem hogy bezavarnak):
$view = new view;
$view->name = 'nezet_hir';
$view->description = 'Hírek nézetje';
$view->tag = '';
$view->view_php = '';
$view->base_table = 'node';
$view->is_cacheable = FALSE;
$view->api_version = 3.0-alpha1;
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */

/* Display: Alapértelmezések */
$handler = $view->new_display('default', 'Alapértelmezések', 'default');
$handler->display->display_options['title'] = 'Archivum';
$handler->display->display_options['use_ajax'] = TRUE;
$handler->display->display_options['access']['type'] = 'none';
$handler->display->display_options['cache']['type'] = 'none';
$handler->display->display_options['exposed_form']['type'] = 'basic';
$handler->display->display_options['exposed_form']['options']['submit_button'] = 'Alkalmaz';
$handler->display->display_options['exposed_form']['options']['reset_button_label'] = 'Alaphelyzet';
$handler->display->display_options['pager']['type'] = 'mini';
$handler->display->display_options['pager']['options']['expose']['items_per_page_label'] = 'Elemek száma oldalanként';
$handler->display->display_options['pager']['options']['expose']['offset_label'] = 'Eltolás';
$handler->display->display_options['style_plugin'] = 'table';
$handler->display->display_options['style_options']['grouping'] = 'title';
$handler->display->display_options['style_options']['columns'] = array(
'title' => 'title',
'field_hir_rovid_value' => 'field_hir_rovid_value',
);
$handler->display->display_options['style_options']['default'] = '-1';
$handler->display->display_options['style_options']['info'] = array(
'title' => array(
'sortable' => 0,
'separator' => '',
),
'field_hir_rovid_value' => array(
'sortable' => 0,
'separator' => '',
),
);
$handler->display->display_options['style_options']['override'] = 1;
$handler->display->display_options['style_options']['sticky'] = 0;
/* Mező: Tartalom: Cím */
$handler->display->display_options['fields']['title']['id'] = 'title';
$handler->display->display_options['fields']['title']['table'] = 'node';
$handler->display->display_options['fields']['title']['field'] = 'title';
$handler->display->display_options['fields']['title']['label'] = '';
$handler->display->display_options['fields']['title']['exclude'] = TRUE;
$handler->display->display_options['fields']['title']['alter']['alter_text'] = 0;
$handler->display->display_options['fields']['title']['alter']['make_link'] = 0;
$handler->display->display_options['fields']['title']['alter']['trim'] = 0;
$handler->display->display_options['fields']['title']['alter']['word_boundary'] = 1;
$handler->display->display_options['fields']['title']['alter']['ellipsis'] = 1;
$handler->display->display_options['fields']['title']['alter']['strip_tags'] = 0;
$handler->display->display_options['fields']['title']['alter']['html'] = 0;
$handler->display->display_options['fields']['title']['hide_empty'] = 0;
$handler->display->display_options['fields']['title']['empty_zero'] = 0;
$handler->display->display_options['fields']['title']['link_to_node'] = 1;
/* Mező: Tartalom: Hirhez tartozo kiskep (field_hir_kiskep) */
$handler->display->display_options['fields']['field_hir_kiskep_fid']['id'] = 'field_hir_kiskep_fid';
$handler->display->display_options['fields']['field_hir_kiskep_fid']['table'] = 'node_data_field_hir_kiskep';
$handler->display->display_options['fields']['field_hir_kiskep_fid']['field'] = 'field_hir_kiskep_fid';
$handler->display->display_options['fields']['field_hir_kiskep_fid']['alter']['alter_text'] = 0;
$handler->display->display_options['fields']['field_hir_kiskep_fid']['alter']['make_link'] = 0;
$handler->display->display_options['fields']['field_hir_kiskep_fid']['alter']['trim'] = 0;
$handler->display->display_options['fields']['field_hir_kiskep_fid']['alter']['word_boundary'] = 1;
$handler->display->display_options['fields']['field_hir_kiskep_fid']['alter']['ellipsis'] = 1;
$handler->display->display_options['fields']['field_hir_kiskep_fid']['alter']['strip_tags'] = 0;
$handler->display->display_options['fields']['field_hir_kiskep_fid']['alter']['html'] = 0;
$handler->display->display_options['fields']['field_hir_kiskep_fid']['hide_empty'] = 0;
$handler->display->display_options['fields']['field_hir_kiskep_fid']['empty_zero'] = 0;
$handler->display->display_options['fields']['field_hir_kiskep_fid']['link_to_node'] = 0;
$handler->display->display_options['fields']['field_hir_kiskep_fid']['label_type'] = 'none';
$handler->display->display_options['fields']['field_hir_kiskep_fid']['format'] = 'hireknel_kiskep_default';
/* Mező: Tartalom: Hír rövid leírása (field_hir_rovid) */
$handler->display->display_options['fields']['field_hir_rovid_value']['id'] = 'field_hir_rovid_value';
$handler->display->display_options['fields']['field_hir_rovid_value']['table'] = 'node_data_field_hir_rovid';
$handler->display->display_options['fields']['field_hir_rovid_value']['field'] = 'field_hir_rovid_value';
$handler->display->display_options['fields']['field_hir_rovid_value']['alter']['alter_text'] = 0;
$handler->display->display_options['fields']['field_hir_rovid_value']['alter']['make_link'] = 0;
$handler->display->display_options['fields']['field_hir_rovid_value']['alter']['trim'] = 0;
$handler->display->display_options['fields']['field_hir_rovid_value']['alter']['word_boundary'] = 1;
$handler->display->display_options['fields']['field_hir_rovid_value']['alter']['ellipsis'] = 1;
$handler->display->display_options['fields']['field_hir_rovid_value']['alter']['strip_tags'] = 0;
$handler->display->display_options['fields']['field_hir_rovid_value']['alter']['html'] = 0;
$handler->display->display_options['fields']['field_hir_rovid_value']['hide_empty'] = 0;
$handler->display->display_options['fields']['field_hir_rovid_value']['empty_zero'] = 0;
$handler->display->display_options['fields']['field_hir_rovid_value']['link_to_node'] = 0;
$handler->display->display_options['fields']['field_hir_rovid_value']['label_type'] = 'none';
/* Rendezési szempont: Tartalom: Mettől (field_hir_mettol) - Kezdő dátum */
$handler->display->display_options['sorts']['field_hir_mettol_value']['id'] = 'field_hir_mettol_value';
$handler->display->display_options['sorts']['field_hir_mettol_value']['table'] = 'node_data_field_hir_mettol';
$handler->display->display_options['sorts']['field_hir_mettol_value']['field'] = 'field_hir_mettol_value';
$handler->display->display_options['sorts']['field_hir_mettol_value']['order'] = 'DESC';
/* Argumentum: Taxonómia: Kifejezés azonosító */
$handler->display->display_options['arguments']['tid']['id'] = 'tid';
$handler->display->display_options['arguments']['tid']['table'] = 'term_node';
$handler->display->display_options['arguments']['tid']['field'] = 'tid';
$handler->display->display_options['arguments']['tid']['style_plugin'] = 'default_summary';
$handler->display->display_options['arguments']['tid']['default_argument_type'] = 'fixed';
/* Szűrő: Tartalom: Közzétett */
$handler->display->display_options['filters']['status']['id'] = 'status';
$handler->display->display_options['filters']['status']['table'] = 'node';
$handler->display->display_options['filters']['status']['field'] = 'status';
$handler->display->display_options['filters']['status']['value'] = '1';
$handler->display->display_options['filters']['status']['expose']['operator'] = FALSE;
/* Szűrő: Tartalom: Mettől (field_hir_mettol) - Záró dátum */
$handler->display->display_options['filters']['field_hir_mettol_value2']['id'] = 'field_hir_mettol_value2';
$handler->display->display_options['filters']['field_hir_mettol_value2']['table'] = 'node_data_field_hir_mettol';
$handler->display->display_options['filters']['field_hir_mettol_value2']['field'] = 'field_hir_mettol_value2';
$handler->display->display_options['filters']['field_hir_mettol_value2']['operator'] = '>=';
$handler->display->display_options['filters']['field_hir_mettol_value2']['expose']['operator'] = FALSE;
$handler->display->display_options['filters']['field_hir_mettol_value2']['date_fields'] = array(
'node_data_field_hir_mettol.field_hir_mettol_value2' => 'node_data_field_hir_mettol.field_hir_mettol_value2',
);
$handler->display->display_options['filters']['field_hir_mettol_value2']['date_method'] = 'AND';
$handler->display->display_options['filters']['field_hir_mettol_value2']['default_date'] = 'now';
/* Szűrő: Tartalom: Mettől (field_hir_mettol) - Kezdő dátum */
$handler->display->display_options['filters']['field_hir_mettol_value']['id'] = 'field_hir_mettol_value';
$handler->display->display_options['filters']['field_hir_mettol_value']['table'] = 'node_data_field_hir_mettol';
$handler->display->display_options['filters']['field_hir_mettol_value']['field'] = 'field_hir_mettol_value';
$handler->display->display_options['filters']['field_hir_mettol_value']['operator'] = '<=';
$handler->display->display_options['filters']['field_hir_mettol_value']['expose']['operator'] = FALSE;
$handler->display->display_options['filters']['field_hir_mettol_value']['date_fields'] = array(
'node_data_field_hir_mettol.field_hir_mettol_value' => 'node_data_field_hir_mettol.field_hir_mettol_value',
);
$handler->display->display_options['filters']['field_hir_mettol_value']['date_method'] = 'AND';
$handler->display->display_options['filters']['field_hir_mettol_value']['default_date'] = 'now';
/* Szűrő: Sérült / hiányzó kezelő */
$handler->display->display_options['filters']['field_hirek_rovat_value_many_to_one']['id'] = 'field_hirek_rovat_value_many_to_one';
$handler->display->display_options['filters']['field_hirek_rovat_value_many_to_one']['table'] = 'node_data_field_hirek_rovat';
$handler->display->display_options['filters']['field_hirek_rovat_value_many_to_one']['field'] = 'field_hirek_rovat_value_many_to_one';
$handler->display->display_options['filters']['field_hirek_rovat_value_many_to_one']['operator'] = 'or';
$handler->display->display_options['filters']['field_hirek_rovat_value_many_to_one']['value'] = array(
'Fő hír' => 'Fő hír',
);
$handler->display->display_options['filters']['field_hirek_rovat_value_many_to_one']['expose']['operator'] = FALSE;

/* Display: hirek */
$handler = $view->new_display('page', 'hirek', 'page_1');
$handler->display->display_options['defaults']['title'] = FALSE;
$handler->display->display_options['defaults']['items_per_page'] = FALSE;
$handler->display->display_options['defaults']['fields'] = FALSE;
/* Mező: Tartalom: Cím */
$handler->display->display_options['fields']['title']['id'] = 'title';
$handler->display->display_options['fields']['title']['table'] = 'node';
$handler->display->display_options['fields']['title']['field'] = 'title';
$handler->display->display_options['fields']['title']['label'] = '';
$handler->display->display_options['fields']['title']['exclude'] = TRUE;
$handler->display->display_options['fields']['title']['alter']['alter_text'] = 0;
$handler->display->display_options['fields']['title']['alter']['make_link'] = 0;
$handler->display->display_options['fields']['title']['alter']['trim'] = 0;
$handler->display->display_options['fields']['title']['alter']['word_boundary'] = 1;
$handler->display->display_options['fields']['title']['alter']['ellipsis'] = 1;
$handler->display->display_options['fields']['title']['alter']['strip_tags'] = 0;
$handler->display->display_options['fields']['title']['alter']['html'] = 0;
$handler->display->display_options['fields']['title']['hide_empty'] = 0;
$handler->display->display_options['fields']['title']['empty_zero'] = 0;
$handler->display->display_options['fields']['title']['link_to_node'] = 1;
/* Mező: Tartalom: Hirhez tartozo kiskep (field_hir_kiskep) */
$handler->display->display_options['fields']['field_hir_kiskep_fid']['id'] = 'field_hir_kiskep_fid';
$handler->display->display_options['fields']['field_hir_kiskep_fid']['table'] = 'node_data_field_hir_kiskep';
$handler->display->display_options['fields']['field_hir_kiskep_fid']['field'] = 'field_hir_kiskep_fid';
$handler->display->display_options['fields']['field_hir_kiskep_fid']['alter']['alter_text'] = 0;
$handler->display->display_options['fields']['field_hir_kiskep_fid']['alter']['make_link'] = 0;
$handler->display->display_options['fields']['field_hir_kiskep_fid']['alter']['trim'] = 0;
$handler->display->display_options['fields']['field_hir_kiskep_fid']['alter']['word_boundary'] = 1;
$handler->display->display_options['fields']['field_hir_kiskep_fid']['alter']['ellipsis'] = 1;
$handler->display->display_options['fields']['field_hir_kiskep_fid']['alter']['strip_tags'] = 0;
$handler->display->display_options['fields']['field_hir_kiskep_fid']['alter']['html'] = 0;
$handler->display->display_options['fields']['field_hir_kiskep_fid']['hide_empty'] = 0;
$handler->display->display_options['fields']['field_hir_kiskep_fid']['empty_zero'] = 0;
$handler->display->display_options['fields']['field_hir_kiskep_fid']['link_to_node'] = 0;
$handler->display->display_options['fields']['field_hir_kiskep_fid']['label_type'] = 'none';
$handler->display->display_options['fields']['field_hir_kiskep_fid']['format'] = 'hireknel_kiskep_default';
/* Mező: Tartalom: Hír rövid leírása (field_hir_rovid) */
$handler->display->display_options['fields']['field_hir_rovid_value']['id'] = 'field_hir_rovid_value';
$handler->display->display_options['fields']['field_hir_rovid_value']['table'] = 'node_data_field_hir_rovid';
$handler->display->display_options['fields']['field_hir_rovid_value']['field'] = 'field_hir_rovid_value';
$handler->display->display_options['fields']['field_hir_rovid_value']['alter']['alter_text'] = 0;
$handler->display->display_options['fields']['field_hir_rovid_value']['alter']['make_link'] = 0;
$handler->display->display_options['fields']['field_hir_rovid_value']['alter']['trim'] = 0;
$handler->display->display_options['fields']['field_hir_rovid_value']['alter']['word_boundary'] = 1;
$handler->display->display_options['fields']['field_hir_rovid_value']['alter']['ellipsis'] = 1;
$handler->display->display_options['fields']['field_hir_rovid_value']['alter']['strip_tags'] = 0;
$handler->display->display_options['fields']['field_hir_rovid_value']['alter']['html'] = 0;
$handler->display->display_options['fields']['field_hir_rovid_value']['hide_empty'] = 0;
$handler->display->display_options['fields']['field_hir_rovid_value']['empty_zero'] = 0;
$handler->display->display_options['fields']['field_hir_rovid_value']['link_to_node'] = 0;
$handler->display->display_options['fields']['field_hir_rovid_value']['label_type'] = 'none';
$handler->display->display_options['defaults']['sorts'] = FALSE;
/* Rendezési szempont: Tartalom: Fontos hír (field_hir_fontos) */
$handler->display->display_options['sorts']['field_hir_fontos_value']['id'] = 'field_hir_fontos_value';
$handler->display->display_options['sorts']['field_hir_fontos_value']['table'] = 'node_data_field_hir_fontos';
$handler->display->display_options['sorts']['field_hir_fontos_value']['field'] = 'field_hir_fontos_value';
$handler->display->display_options['sorts']['field_hir_fontos_value']['order'] = 'DESC';
/* Rendezési szempont: Tartalom: Mettől (field_hir_mettol) - Kezdő dátum */
$handler->display->display_options['sorts']['field_hir_mettol_value']['id'] = 'field_hir_mettol_value';
$handler->display->display_options['sorts']['field_hir_mettol_value']['table'] = 'node_data_field_hir_mettol';
$handler->display->display_options['sorts']['field_hir_mettol_value']['field'] = 'field_hir_mettol_value';
$handler->display->display_options['sorts']['field_hir_mettol_value']['order'] = 'DESC';
$handler->display->display_options['defaults']['filters'] = FALSE;
/* Szűrő: Tartalom: Közzétett */
$handler->display->display_options['filters']['status']['id'] = 'status';
$handler->display->display_options['filters']['status']['table'] = 'node';
$handler->display->display_options['filters']['status']['field'] = 'status';
$handler->display->display_options['filters']['status']['value'] = '1';
$handler->display->display_options['filters']['status']['expose']['operator'] = FALSE;
/* Szűrő: Tartalom: Mettől (field_hir_mettol) - Záró dátum */
$handler->display->display_options['filters']['field_hir_mettol_value2']['id'] = 'field_hir_mettol_value2';
$handler->display->display_options['filters']['field_hir_mettol_value2']['table'] = 'node_data_field_hir_mettol';
$handler->display->display_options['filters']['field_hir_mettol_value2']['field'] = 'field_hir_mettol_value2';
$handler->display->display_options['filters']['field_hir_mettol_value2']['operator'] = '>=';
$handler->display->display_options['filters']['field_hir_mettol_value2']['expose']['operator'] = FALSE;
$handler->display->display_options['filters']['field_hir_mettol_value2']['date_fields'] = array(
'node_data_field_hir_mettol.field_hir_mettol_value2' => 'node_data_field_hir_mettol.field_hir_mettol_value2',
);
$handler->display->display_options['filters']['field_hir_mettol_value2']['date_method'] = 'AND';
$handler->display->display_options['filters']['field_hir_mettol_value2']['default_date'] = 'now';
/* Szűrő: Tartalom: Mettől (field_hir_mettol) - Kezdő dátum */
$handler->display->display_options['filters']['field_hir_mettol_value']['id'] = 'field_hir_mettol_value';
$handler->display->display_options['filters']['field_hir_mettol_value']['table'] = 'node_data_field_hir_mettol';
$handler->display->display_options['filters']['field_hir_mettol_value']['field'] = 'field_hir_mettol_value';
$handler->display->display_options['filters']['field_hir_mettol_value']['operator'] = '<=';
$handler->display->display_options['filters']['field_hir_mettol_value']['expose']['operator'] = FALSE;
$handler->display->display_options['filters']['field_hir_mettol_value']['date_fields'] = array(
'node_data_field_hir_mettol.field_hir_mettol_value' => 'node_data_field_hir_mettol.field_hir_mettol_value',
);
$handler->display->display_options['filters']['field_hir_mettol_value']['date_method'] = 'AND';
$handler->display->display_options['filters']['field_hir_mettol_value']['default_date'] = 'now';
$handler->display->display_options['path'] = 'nezetek/hirek';
$handler->display->display_options['menu']['type'] = 'normal';
$handler->display->display_options['menu']['title'] = 'Hírek';
$handler->display->display_options['menu']['weight'] = '0';
$handler->display->display_options['menu']['name'] = 'menu-fomenu';

0
0