Stoppt die Vorratsdatenspeicherung! Jetzt klicken &handeln! Willst du auch an der Aktion teilnehmen? Hier findest du alle relevanten Infos und Materialien:

Archived entries for views

Drupal: Mega-Menus

Einfach Mega Menus mit Views in Drupal erstellen.

Menu Views allows administrators to attach a view inside a menu item.
This is useful when creating “mega-menus” with content such as:

  • Recent blog, node, or user posts
  • Complex views that contain graphics and other HTML structures.

This module adds an “Attach view” fieldset on any add/edit menu item on any menu (admin/structure/menu/manage) where you can select a view, display and pass arguments.

Optionally, if you wish to display only the view, you may set the menu item’s path to . This will ensure the title and path (link) is not rendered.

Drupal: Views Aggregation

Johan Falk erklärt das Aggregation Feature in Views.

If you don’t want to watch screencasts, here’s short-short version (spoiler alert!):

  • Aggregation makes Views not return items from the database, but groups of items.
  • You find the aggregation setting in the advanced section in Views.
  • Add any fields you want to use for grouping, in aggregation mode “group similar results”.
  • Add any fields you want to do calculations on – sums, averages, counts, etc.
  • Make sure you don’t, for example, have sorting on publish date – it will make your aggregation more or less meaningless.

Drupal: Alle Felder ein View durchsuchen

10jumps zeigt wie man über den hook hook_views_query_alter (&$view, &$query) ale Felder eine View durchsuchbar machen kann, ohne ein Textfeld für jedes einzelne Feld auszugeben.

In order to do this, we extended the hook_views_query_alter (&$view, &$query)

if ($view->name == 'people_list') {
	if (startsWith($query->where[0]['clauses'][0], 'search_index.word')) {
		$query->where[0]['clauses'][0] = "search_index.word LIKE '%s'";
		$query->where[0]['args'][0] = '%' . $query->where[0]['args'][0] . '%';
	}
}

Drupal: Views Quicksand

Ach ich liebe Drupal ;-) Gerade noch überlegt das Quicksand eine coole Idee für eine Webseite wäre und schon taucht ein passendes Drupal Module auf: Views Quicksand.

Quicksand is a jQuery Plugin that provides a nice animation for filtering or reordering lists of content.

Views Quicksand integrates this effect into Views. Therefore it provides a views style-plugin, which allows you to alter most settings the quicksand plugin provides.

Drupal: Custom Contextual Links in Views

Janez Urevc erklärt die nötigen Schritte um “contextual links” einer View hinzuzufügen.

Einen anderen Weg beschreibt appnovation: Making management of nodeques in views easier



Copyright © 2004–2009. All rights reserved. – Impressum

RSS Feed. This blog is proudly powered by Wordpress and uses Modern Clix, a theme by Rodrigo Galindez.