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

Archived entries for PHP

New Features in Joomla! 2.5

Die Übersicht der neuen Features in Joomla 2.5 sieht sehr gut aus.

Joomla 2.5, due out in January 2012, will have a host of new features including new search functionality, multi-database support, and update notification. (…) Moving from 1.7 to 2.5 can be done with the one-click upgrade within Joomla and most extensions that run on 1.7 should also run on 2.5.

Based on Finder, which was developed by jXtended, Joomla 2.5 has added an exciting new natural language search function. This feature incorporated auto-completion and stemming. Stemming is the ability for the search to use the root of the word you entered to locate matches. While there is still work to be done, this search is also much better at searching in languages other than English.

This new search is faster and more versatile that the standard search. The data is indexed to get this flexibility and speed. New plugins are required to use this search. Joomla ships with the new core extension plugins, but other extension developers will need to create their own plugins to work with this new search. By default, the standard search is active and this new search is disabled. You can enable the plugin and index your files when the extensions you want to search have the new plugins.

Ich werde die Beta 2 die Tage mal testen.

Typo3: ttnews Breadcrumbs

Praktischer Tip vom typo3blogger:

Da Single-Ansichten wie bei tt_news faktisch (im Normalfall) auf einer Page-ID, also auf einer Seite stattfinden, müssen dem Nutzer trotzdem über den angepassten title und der angepassten Rootline vorgegaukelt werden es sind unterschiedliche Einzelseiten.

Das kann man für tt_news z.B über ein RECORDS-Objekt einbinden, das der normalen Breadcrumb angefügt wird:

[globalVar = GP:tx_ttnews|tt_news > 0]
lib.rootline.20 = RECORDS
lib.rootline.20 {
 dontCheckPid = 1
 tables = tt_news
 source.data = GPvar:tx_ttnews|tt_news
 conf.tt_news = TEXT
 conf.tt_news.field = title
 conf.tt_news.wrap = <strong>|</strong>
}
[end]

WordPress: Konstanten

WPEngineer listet alle PHP Konstanten einer WordPress Installation auf.

Das muss ich mir noch mal genauer ansehen. Bisher verwende ich hautsächlich WP_HOME und WP_SITEURL aber EMPTY_TRASH_DAYS und WP_POST_REVISIONS klingen auch sinnvoll.

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] . '%';
	}
}



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.