Umkreissuche funktioniert zwar, aber als Entfernungsangabe lassen sich nur wenige Standardwerte auswählen
![](http://www.drupalcenter.de/files/noavatar_mini.gif)
am 11.01.2017 - 23:11 Uhr in
Liebe Genies ;-)
Ich besitze eine auf Drupal 7.41 basierende Webseite.
Auf dieser Webseite können sich Personen registrieren und erhalten anschließend Zugriff auf Ihr Benutzerkonto.
Als Admin kann ich über eine Suchmaske von einer bestimmten Postleitzahl ausgehend eine Umkreissuche nach Benutzern starten.
Ich verwende die Module Location sowie GMap Location.
Die Umkreissuche funktioniert einwandfrei, aber:
Für die Umkreissuche stehen nur wenige km-Werte (25km, 50km, 100km, 250km) zur Auswahl zur Verfügung.
Gerne würde ich aber bspw in einem Umkreis von 10km oder 40km oder oder oder suchen, ich kann die Standardwerte jedoch nicht ändern und eigene Werte lassen sich nicht eingeben. Im Forum hier habe ich nichts dazu gefunden und auch Google hat mich nicht schlauer gemacht :-(
Über eure Unterstützung wäre ich wirklich unglaublich dankbar.
Herzlichen Dank schon mal im Voraus!!!!
LG
Julia
- Anmelden oder Registrieren um Kommentare zu schreiben
das ist wahrscheinlich im
am 12.01.2017 - 09:54 Uhr
das ist wahrscheinlich im template überschrieben.
In welcher Datei / in welchem Dokument im Template
am 12.01.2017 - 10:34 Uhr
Herzlichen Dank für die Antwort.
In welcher Datei / in welchem Dokument im Template ist normalerweise solch eine Einstellung hinterlegt?
Vielen Dank :-)
das ist kein einstellung,
am 12.01.2017 - 11:19 Uhr
das ist kein einstellung, sondern per php überschrieben.
Hmmm wo kann ich das denn
am 12.01.2017 - 20:06 Uhr
Hmmm wo kann ich das denn einsehen?
Im Template-Ordner habe ich bereits in den .php - Dateien nachgesehen aber finde nichts :,-(
Vielen Dank für Eure Geduld mit mir.
LG
Julia
in der template.php datei....
am 13.01.2017 - 05:59 Uhr
in der template.php datei....
Vielen Dank aber in der
am 13.01.2017 - 09:45 Uhr
Vielen Dank aber in der template.php Datei finde ich auch keine Angabe hierzu :,-(
Hier der Inhalt der template.php Datei:
<?php
/**
* Override or insert variables into the maintenance page template.
*/
function seven_preprocess_maintenance_page(&$vars) {
// While markup for normal pages is split into page.tpl.php and html.tpl.php,
// the markup for the maintenance page is all in the single
// maintenance-page.tpl.php template. So, to have what's done in
// seven_preprocess_html() also happen on the maintenance page, it has to be
// called here.
seven_preprocess_html($vars);
}
/**
* Override or insert variables into the html template.
*/
function seven_preprocess_html(&$vars) {
// Add conditional CSS for IE8 and below.
drupal_add_css(path_to_theme() . '/ie.css', array('group' => CSS_THEME, 'browsers' => array('IE' => 'lte IE 8', '!IE' => FALSE), 'weight' => 999, 'preprocess' => FALSE));
// Add conditional CSS for IE7 and below.
drupal_add_css(path_to_theme() . '/ie7.css', array('group' => CSS_THEME, 'browsers' => array('IE' => 'lte IE 7', '!IE' => FALSE), 'weight' => 999, 'preprocess' => FALSE));
// Add conditional CSS for IE6.
drupal_add_css(path_to_theme() . '/ie6.css', array('group' => CSS_THEME, 'browsers' => array('IE' => 'lte IE 6', '!IE' => FALSE), 'weight' => 999, 'preprocess' => FALSE));
}
/**
* Override or insert variables into the page template.
*/
function seven_preprocess_page(&$vars) {
$vars['primary_local_tasks'] = $vars['tabs'];
unset($vars['primary_local_tasks']['#secondary']);
$vars['secondary_local_tasks'] = array(
'#theme' => 'menu_local_tasks',
'#secondary' => $vars['tabs']['#secondary'],
);
}
/**
* Display the list of available node types for node creation.
*/
function seven_node_add_list($variables) {
$content = $variables['content'];
$output = '';
if ($content) {
$output = '
';
- ';
' . filter_xss_admin($item['description']) . '
foreach ($content as $item) {
$output .= '
$output .= '' . l($item['title'], $item['href'], $item['localized_options']) . '';
$output .= '
';
$output .= '
';
}
$output .= '
';
}
else {
$output = '
' . t('You have not created any content types yet. Go to the content type creation page to add a new content type.', array('@create-content' => url('admin/structure/types/add'))) . '
';
}
return $output;
}
/**
* Overrides theme_admin_block_content().
*
* Use unordered list markup in both compact and extended mode.
*/
function seven_admin_block_content($variables) {
$content = $variables['content'];
$output = '';
if (!empty($content)) {
$output = system_admin_compact_mode() ? '
' : '
';
- ';
' . filter_xss_admin($item['description']) . '
foreach ($content as $item) {
$output .= '
$output .= l($item['title'], $item['href'], $item['localized_options']);
if (isset($item['description']) && !system_admin_compact_mode()) {
$output .= '
';
}
$output .= '
';
}
$output .= '
';
}
return $output;
}
/**
* Override of theme_tablesort_indicator().
*
* Use our own image versions, so they show up as black and not gray on gray.
*/
function seven_tablesort_indicator($variables) {
$style = $variables['style'];
$theme_path = drupal_get_path('theme', 'seven');
if ($style == 'asc') {
return theme('image', array('path' => $theme_path . '/images/arrow-asc.png', 'alt' => t('sort ascending'), 'width' => 13, 'height' => 13, 'title' => t('sort ascending')));
}
else {
return theme('image', array('path' => $theme_path . '/images/arrow-desc.png', 'alt' => t('sort descending'), 'width' => 13, 'height' => 13, 'title' => t('sort descending')));
}
}
/**
* Implements hook_css_alter().
*/
function seven_css_alter(&$css) {
// Use Seven's vertical tabs style instead of the default one.
if (isset($css['misc/vertical-tabs.css'])) {
$css['misc/vertical-tabs.css']['data'] = drupal_get_path('theme', 'seven') . '/vertical-tabs.css';
$css['misc/vertical-tabs.css']['type'] = 'file';
}
if (isset($css['misc/vertical-tabs-rtl.css'])) {
$css['misc/vertical-tabs-rtl.css']['data'] = drupal_get_path('theme', 'seven') . '/vertical-tabs-rtl.css';
$css['misc/vertical-tabs-rtl.css']['type'] = 'file';
}
// Use Seven's jQuery UI theme style instead of the default one.
if (isset($css['misc/ui/jquery.ui.theme.css'])) {
$css['misc/ui/jquery.ui.theme.css']['data'] = drupal_get_path('theme', 'seven') . '/jquery.ui.theme.css';
$css['misc/ui/jquery.ui.theme.css']['type'] = 'file';
}
}
die standardwerte lassen sich
am 13.01.2017 - 10:34 Uhr
die standardwerte lassen sich in der ansicht ändern. anderes mußt du im template dann überschreiben