organic groups Usermaps
am 18.01.2009 - 23:12 Uhr in
Hi Leute,
ich bin grade am basteln. Ich versuche mithilfe der Module Views,gmap,location, und organic groups für jede Gruppe eine Usermap zu erstellen. D.h alle Nutzer die in der Gruppe angemeldet sind sollen angezeigt werden. Das ganze hab ich eigentlich auch hinbekommen. Nur leider wird der Reiter "Karte" jetzt bei jedem Node angezeigt, anstatt nur bei den Gruppennodes. Und da bin ich jetzt leider mit meinem Latein am Ende. Vielleicht hat ja jemand von euch ne Idee wie ich es erreichen kann das der Reiter nur bei den Gruppennodes auftaucht. Den exportierten View hab ich mal unten rangehangen.
Danke
Waerter
$view = new view;
$view->name = 'og_usermap';
$view->description = 'OG_Usermap';
$view->tag = 'og';
$view->view_php = '';
$view->base_table = 'users';
$view->is_cacheable = FALSE;
$view->api_version = 2;
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
$handler = $view->new_display('default', 'Standards', 'default');
$handler->override_option('fields', array(
'picture' => array(
'id' => 'picture',
'table' => 'users',
'field' => 'picture',
),
'name' => array(
'id' => 'name',
'table' => 'users',
'field' => 'name',
),
'coordinates' => array(
'label' => 'Coordinates',
'style' => 'dms',
'exclude' => 1,
'id' => 'coordinates',
'table' => 'location',
'field' => 'coordinates',
'relationship' => 'none',
),
));
$handler->override_option('arguments', array(
'nid' => array(
'default_action' => 'not found',
'style_plugin' => 'default_summary',
'style_options' => array(),
'wildcard' => 'all',
'wildcard_substitution' => 'Alle',
'title' => '',
'default_argument_type' => 'fixed',
'default_argument' => '',
'validate_type' => 'none',
'validate_fail' => 'not found',
'break_phrase' => 0,
'not' => 0,
'id' => 'nid',
'table' => 'og_uid',
'field' => 'nid',
'override' => array(
'button' => 'Übersteuern',
),
'relationship' => 'none',
'default_options_div_prefix' => '',
'default_argument_user' => 0,
'default_argument_fixed' => '',
'default_argument_php' => '',
'validate_argument_node_type' => array(
'poll' => 0,
'forum' => 0,
'game' => 0,
'game_download' => 0,
'game_link' => 0,
'game_page' => 0,
'game_post' => 0,
'page' => 0,
'story' => 0,
),
'validate_argument_node_access' => 0,
'validate_argument_nid_type' => 'nid',
'validate_argument_is_member' => 0,
'validate_argument_vocabulary' => array(
'1' => 0,
),
'validate_argument_type' => 'tid',
'validate_argument_php' => '',
),
));
$handler->override_option('filters', array(
'is_active' => array(
'operator' => '=',
'value' => '1',
'group' => '0',
'exposed' => FALSE,
'expose' => array(
'operator' => FALSE,
'label' => '',
),
'id' => 'is_active',
'table' => 'og_uid',
'field' => 'is_active',
'override' => array(
'button' => 'Übersteuern',
),
'relationship' => 'nid',
),
));
$handler->override_option('access', array(
'type' => 'role',
'role' => array(
'2' => 2,
'3' => 3,
),
));
$handler->override_option('items_per_page', 90);
$handler->override_option('use_pager', 'mini');
$handler->override_option('style_plugin', 'gmap');
$handler->override_option('style_options', array(
'grouping' => '',
'macro' => '[gmap ]',
'datasource' => 'location',
'markers' => 'static',
'markertype' => 'small blue',
));
$handler->override_option('row_options', array(
'inline' => array(
'coordinates' => 'coordinates',
),
'separator' => ';',
));
$handler = $view->new_display('page', 'Seite', 'page_1');
$handler->override_option('path', 'node/%/usermap');
$handler->override_option('menu', array(
'type' => 'tab',
'title' => 'Karte',
'weight' => '0',
'name' => 'navigation',
));
$handler->override_option('tab_options', array(
'type' => 'none',
'title' => '',
'weight' => 0,
));- Anmelden oder Registrieren um Kommentare zu schreiben

Neue Kommentare
vor 2 Wochen 3 Tagen
vor 2 Wochen 4 Tagen
vor 2 Wochen 5 Tagen
vor 3 Wochen 2 Tagen
vor 3 Wochen 2 Tagen
vor 4 Wochen 1 Stunde
vor 4 Wochen 1 Stunde
vor 4 Wochen 1 Stunde
vor 6 Wochen 3 Tagen
vor 6 Wochen 4 Tagen