Lista a felhasználókról, akik nem hoztak létre tartalmat

KaoszNagymaester képe

Sziasztok!

Olyat szeretnék, hogy kilistázzam a felhasználókat, aszerint, hogy hoztak-e létre tartalmat, vagy sem.
Views-ban ott akadtam el, hogy ha az elején a Felhasználókat választom, akkor ahhoz már nem tudok tartalommal kapcsolatos mezőket, feltételeket hozzáadni.
Van erre megoldás?

Köszi

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

user alapú nézet kell, ami használ egy node relationshipet (két relationship lesz összesen, egyik file, másik node. a node -ot kell neked használni) aztán kell egy filter, ami node: post date » not null, és az előbb hozzáadott relationshipet használja majd.

itt a nézet exportja, amivel kikísérleteztem neked ezt a megoldást. előtte még nem csináltam ilyet, jó móka volt. ;)

$view = new view;
$view->name = 'users';
$view->description = '';
$view->tag = '';
$view->base_table = 'users';
$view->human_name = 'Users';
$view->core = 6;
$view->api_version = '3.0-alpha1';
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
 
/* Display: Defaults */
$handler = $view->new_display('default', 'Defaults', 'default');
$handler->display->display_options['access']['type'] = 'none';
$handler->display->display_options['cache']['type'] = 'none';
$handler->display->display_options['query']['type'] = 'views_query';
$handler->display->display_options['query']['options']['distinct'] = TRUE;
$handler->display->display_options['exposed_form']['type'] = 'basic';
$handler->display->display_options['pager']['type'] = 'full';
$handler->display->display_options['style_plugin'] = 'table';
$handler->display->display_options['style_options']['columns'] = array(
  'access' => 'access',
  'login' => 'login',
  'name' => 'name',
  'picture' => 'picture',
);
$handler->display->display_options['style_options']['default'] = '-1';
$handler->display->display_options['style_options']['info'] = array(
  'access' => array(
    'sortable' => 0,
    'default_sort_order' => 'asc',
    'align' => '',
    'separator' => '',
  ),
  'login' => array(
    'sortable' => 0,
    'default_sort_order' => 'asc',
    'align' => '',
    'separator' => '',
  ),
  'name' => array(
    'sortable' => 0,
    'default_sort_order' => 'asc',
    'align' => '',
    'separator' => '',
  ),
  'picture' => array(
    'sortable' => 0,
    'default_sort_order' => 'asc',
    'align' => '',
    'separator' => '',
  ),
);
$handler->display->display_options['style_options']['override'] = 1;
$handler->display->display_options['style_options']['sticky'] = 0;
/* Relationship: User: Nodes authored */
$handler->display->display_options['relationships']['uid']['id'] = 'uid';
$handler->display->display_options['relationships']['uid']['table'] = 'users';
$handler->display->display_options['relationships']['uid']['field'] = 'uid';
$handler->display->display_options['relationships']['uid']['required'] = 0;
/* Field: User: Picture */
$handler->display->display_options['fields']['picture']['id'] = 'picture';
$handler->display->display_options['fields']['picture']['table'] = 'users';
$handler->display->display_options['fields']['picture']['field'] = 'picture';
$handler->display->display_options['fields']['picture']['alter']['alter_text'] = 0;
$handler->display->display_options['fields']['picture']['alter']['make_link'] = 0;
$handler->display->display_options['fields']['picture']['alter']['absolute'] = 0;
$handler->display->display_options['fields']['picture']['alter']['external'] = 0;
$handler->display->display_options['fields']['picture']['alter']['trim'] = 0;
$handler->display->display_options['fields']['picture']['alter']['nl2br'] = 0;
$handler->display->display_options['fields']['picture']['alter']['word_boundary'] = 1;
$handler->display->display_options['fields']['picture']['alter']['ellipsis'] = 1;
$handler->display->display_options['fields']['picture']['alter']['strip_tags'] = 0;
$handler->display->display_options['fields']['picture']['alter']['html'] = 0;
$handler->display->display_options['fields']['picture']['element_label_colon'] = 1;
$handler->display->display_options['fields']['picture']['element_default_classes'] = 1;
$handler->display->display_options['fields']['picture']['hide_empty'] = 0;
$handler->display->display_options['fields']['picture']['empty_zero'] = 0;
/* Field: User: Name */
$handler->display->display_options['fields']['name']['id'] = 'name';
$handler->display->display_options['fields']['name']['table'] = 'users';
$handler->display->display_options['fields']['name']['field'] = 'name';
$handler->display->display_options['fields']['name']['alter']['alter_text'] = 0;
$handler->display->display_options['fields']['name']['alter']['make_link'] = 0;
$handler->display->display_options['fields']['name']['alter']['absolute'] = 0;
$handler->display->display_options['fields']['name']['alter']['external'] = 0;
$handler->display->display_options['fields']['name']['alter']['trim'] = 0;
$handler->display->display_options['fields']['name']['alter']['nl2br'] = 0;
$handler->display->display_options['fields']['name']['alter']['word_boundary'] = 1;
$handler->display->display_options['fields']['name']['alter']['ellipsis'] = 1;
$handler->display->display_options['fields']['name']['alter']['strip_tags'] = 0;
$handler->display->display_options['fields']['name']['alter']['html'] = 0;
$handler->display->display_options['fields']['name']['element_label_colon'] = 1;
$handler->display->display_options['fields']['name']['element_default_classes'] = 1;
$handler->display->display_options['fields']['name']['hide_empty'] = 0;
$handler->display->display_options['fields']['name']['empty_zero'] = 0;
$handler->display->display_options['fields']['name']['link_to_user'] = 1;
$handler->display->display_options['fields']['name']['overwrite_anonymous'] = 0;
/* Field: User: Last access */
$handler->display->display_options['fields']['access']['id'] = 'access';
$handler->display->display_options['fields']['access']['table'] = 'users';
$handler->display->display_options['fields']['access']['field'] = 'access';
$handler->display->display_options['fields']['access']['alter']['alter_text'] = 0;
$handler->display->display_options['fields']['access']['alter']['make_link'] = 0;
$handler->display->display_options['fields']['access']['alter']['absolute'] = 0;
$handler->display->display_options['fields']['access']['alter']['external'] = 0;
$handler->display->display_options['fields']['access']['alter']['trim'] = 0;
$handler->display->display_options['fields']['access']['alter']['nl2br'] = 0;
$handler->display->display_options['fields']['access']['alter']['word_boundary'] = 1;
$handler->display->display_options['fields']['access']['alter']['ellipsis'] = 1;
$handler->display->display_options['fields']['access']['alter']['strip_tags'] = 0;
$handler->display->display_options['fields']['access']['alter']['html'] = 0;
$handler->display->display_options['fields']['access']['element_label_colon'] = 1;
$handler->display->display_options['fields']['access']['element_default_classes'] = 1;
$handler->display->display_options['fields']['access']['hide_empty'] = 0;
$handler->display->display_options['fields']['access']['empty_zero'] = 0;
/* Field: User: Last login */
$handler->display->display_options['fields']['login']['id'] = 'login';
$handler->display->display_options['fields']['login']['table'] = 'users';
$handler->display->display_options['fields']['login']['field'] = 'login';
$handler->display->display_options['fields']['login']['alter']['alter_text'] = 0;
$handler->display->display_options['fields']['login']['alter']['make_link'] = 0;
$handler->display->display_options['fields']['login']['alter']['absolute'] = 0;
$handler->display->display_options['fields']['login']['alter']['external'] = 0;
$handler->display->display_options['fields']['login']['alter']['trim'] = 0;
$handler->display->display_options['fields']['login']['alter']['nl2br'] = 0;
$handler->display->display_options['fields']['login']['alter']['word_boundary'] = 1;
$handler->display->display_options['fields']['login']['alter']['ellipsis'] = 1;
$handler->display->display_options['fields']['login']['alter']['strip_tags'] = 0;
$handler->display->display_options['fields']['login']['alter']['html'] = 0;
$handler->display->display_options['fields']['login']['element_label_colon'] = 1;
$handler->display->display_options['fields']['login']['element_default_classes'] = 1;
$handler->display->display_options['fields']['login']['hide_empty'] = 0;
$handler->display->display_options['fields']['login']['empty_zero'] = 0;
/* Filter: Node: Post date */
$handler->display->display_options['filters']['created']['id'] = 'created';
$handler->display->display_options['filters']['created']['table'] = 'node';
$handler->display->display_options['filters']['created']['field'] = 'created';
$handler->display->display_options['filters']['created']['relationship'] = 'uid';
$handler->display->display_options['filters']['created']['operator'] = 'empty';
 
/* Display: Page */
$handler = $view->new_display('page', 'Page', 'page_1');
$handler->display->display_options['path'] = 'users';
$translatables['users'] = array(
  t('Defaults'),
  t('more'),
  t('Apply'),
  t('Reset'),
  t('Sort By'),
  t('Asc'),
  t('Desc'),
  t('Items per page'),
  t('- All -'),
  t('Offset'),
  t('nodes'),
  t('Picture'),
  t('Name'),
  t('Last access'),
  t('Last login'),
  t('Page'),
);

importáld be, látni fogod mit-hogyan.

0
0

-
clear: both;

zserno képe

Annyival egeszitenem ki aboros kollega remek kis view-jat, hogy ez csak a legfrissebb Views verzioval, a harmassal fog menni, ahogy az alabbi kodsorbol is lathato:

$view->api_version = '3.0-alpha1';

0
0
aboros képe

de az elv kettes viewsban is működni fog.

0
0

-
clear: both;

KaoszNagymaester képe

Köszönöm a segítséget, már majdnem jó, de valamiért nem 100%-osan működik. Egy az egyben a Te forrásod importáltam be, (2.3-as verzió alatt nem volt node a relationship-nél)

100 tartalomból kb. 30 felhasználót szűr ki, akikhez nincs tartalom. A baj az, hogy a 30-ból kb 6-7-nek van. Nem tudom mi alapján teszi bele ezt a 6-7-et, de nekik egyértelműen van beküldött tartalmuk.
Talán az alpha verzió miatt? :S

0
0
aboros képe

6.20 coret és 2011 március ötödikei views-6.x-3.x-dev -et használtam. az volt épp a játszótérbe. szerintem uppolj nyugodtan a legújabb 3.x viewsra.. hacsak nem használsz valami durvaságot, ami épít rá nemtom, súlyos organic groups alapokra építkezve rengeteg view, akkor azért tesztelj előtte. mentésed legyen :)

0
0

-
clear: both;

KaoszNagymaester képe

Sikerült, köszi!
A 6.x-2.12-es verzióban nem volt a relationship-nél a szükséges mező.
A 6.x-3.0-alpha3 verzió alakult, de hibás volt a lista.
A 6.x-3.x-dev verzióval tökéletesen működik. :)

0
0
aboros képe

így néz ki a view szerkesztése:
https://skitch.com/aboros/r5ijy/edit-view-users-playground

igazabol a legjobb az lenne, ha az elvet kovetve magad probalnad meg felepiteni a nezet az adott rendszerben. barmeddig jutsz, kuldd export formaban a nezet.

0
0

-
clear: both;