delahaye / dlh_googlemaps

Google Maps Extension für Contao
20 stars 26 forks source link

Add a blank option to the select tl_content.dlh_googlemap_size #85

Closed Aybee closed 6 years ago

Aybee commented 6 years ago

Hallo Christian.

Wenn man seine Google-Map einstellt auf z.B. Proportional 16/9, dann möchte man meistens in den Inhaltselementen die Größe frei lassen, da die Einstellung aus der Map genommen werden soll. Mit dem jetzigen Feld geht dies nicht. Es ist zwar nicht mandatory, aber es fehlt eine leere Option beim Select, sodass es einen Fehler wirft, wenn man dort nichts eintragen möchte.

https://github.com/delahaye/dlh_googlemaps/blob/master/dca/tl_content.php#L66-L75

Evtl. reicht schon ein includeBlankOption

...
$GLOBALS['TL_DCA']['tl_content']['fields']['dlh_googlemap_size'] = [
...
  'eval' => ['includeBlankOption' => true, 'nospace' => true, 'helpwizard' => false, 'tl_class' => 'w50 clr'],
...
];
...
delahaye commented 6 years ago

Kan man machen, kommt im nächsten Release. Danke!

Aybee commented 6 years ago

Ich danke auch 🥇