Startseite
  • » Home
  • » Handbuch & FAQ
  • » Forum
  • » Übersetzungsserver
  • » Suche
Startseite › Forum › Drupalcenter.de › Module › Views ›

organic groups Usermaps

Eingetragen von waerter (1)
am 19.01.2009 - 00:12 Uhr in
  • Views
  • Drupal 6.x

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,
));

‹ Anfängerfrage: Path für Views festlegen? Popup für CCK Content ›
  • Anmelden oder Registrieren um Kommentare zu schreiben

Benutzeranmeldung

  • Registrieren
  • Neues Passwort anfordern

Aktive Forenthemen

  • Dynamische Ansicht von Seiteninhalt (als Tabelle?)
  • Vergabe von Berechtigungen für bestimmte Rollen; mir fehlt der Haken bzw. das „Veröffentlicht“
  • Ich brauche dringen Hilfe zu Updates oder ggf. wwie geht Composer?
  • Medien und andere Daten mit Feeds von Drupal 7 auf Drupal 10 migrieren
  • Rolle erstellen nicht zu finden
  • für drupal11 ein Slider Modul
  • [gelöst] W3CSS Paragraphs Views
  • Drupal 11 neu aufsetzen und Bereiche aus 10 importieren
  • Wie erlaubt man neuen Benutzern auf die Resetseite zugreifen zu dürfen.
  • [gelöst] Anzeigeformat Text mit Bild in einem Artikel, Drupal 11
  • Social Media Buttons um Insteragram erweitern
  • Nach Installation der neuesten D10-Version kein Zugriff auf Website
Weiter

Neue Kommentare

  • Arrrrg. Nix Tabelle :-D /*
    vor 3 Wochen 1 Stunde
  • Textboxen mit Tabelle
    vor 3 Wochen 8 Stunden
  • Du sollst ja auch keine
    vor 3 Wochen 8 Stunden
  • Theme
    vor 3 Wochen 9 Stunden
  • Welches Theme benutzt du
    vor 3 Wochen 14 Stunden
  • Mit Responsive Raster hatte
    vor 3 Wochen 1 Tag
  • Hallo Alex,um das Häkchen
    vor 3 Wochen 1 Tag
  • Modul view_unpublished
    vor 3 Wochen 2 Tagen
  • Modul "override node options"
    vor 3 Wochen 3 Tagen
  • Im Grunde ist dass ein
    vor 3 Wochen 5 Tagen

Statistik

Beiträge im Forum: 250270
Registrierte User: 20480

Neue User:

  • Stevebok
  • Robertnobia
  • AltonRaf

» Alle User anzeigen

User nach Punkten sortiert:
wla9463
stBorchert6003
quiptime4972
Tobias Bähr4019
bv3924
ronald3857
md3717
Thoor3678
Alexander Langer3416
Exterior2903
» User nach Punkten
Zur Zeit sind 0 User und 65 Gäste online.

Hauptmenü

  • » Home
  • » Handbuch & FAQ
  • » Forum
  • » Übersetzungsserver
  • » Suche

Quicklinks I

  • Infos
  • Drupal Showcase
  • Installation
  • Update
  • Forum
  • Team
  • Verhaltensregeln

Quicklinks II

  • Drupal Jobs
  • FAQ
  • Drupal-Kochbuch
  • Best Practice - Drupal Sites - Guidelines
  • Drupal How To's

Quicklinks III

  • Tipps & Tricks
  • Drupal Theme System
  • Theme Handbuch
  • Leitfaden zur Entwicklung von Modulen

RSS & Twitter

  • Drupal Planet deutsch
  • RSS Feed News
  • RSS Feed Planet
  • Twitter Drupalcenter
Drupalcenter Team | Impressum & Datenschutz | Kontakt
Angetrieben von Drupal | Drupal is a registered trademark of Dries Buytaert.
Drupal Initiative - Drupal Association