So habe es hinbekommen. Das Ergebnis ist soweit zufriedenstellend
Danke für die Hilfe. In Anlage noch der aktuelle Stand...
dcaconfig
PHP-Code:
// EVENT ADRESSE, ORT, PLZ >> Anpassung der Palette
$GLOBALS['TL_DCA']['tl_calendar_events']['palettes']['default'] = str_replace
(
'location,teaser','location,ort,plz,adresse,teaser',
$GLOBALS['TL_DCA']['tl_calendar_events']['palettes']['default']
);
// EVENT ADRESSE, ORT, PLZ >> Feld-Konfiguration
$GLOBALS['TL_DCA']['tl_calendar_events']['fields']['adresse'] = array
(
'label' => &$GLOBALS['TL_LANG']['tl_calendar_events']['adresse'],
'inputType' => 'text',
'eval' => array('mandatory'=>'true', 'maxlength'=>64, 'tl_class'=>'w50', 'feGroup'=>'details_legend'),
'sql' => "varchar(64) NOT NULL default ''"
);
$GLOBALS['TL_DCA']['tl_calendar_events']['fields']['ort'] = array
(
'label' => &$GLOBALS['TL_LANG']['tl_calendar_events']['ort'],
'inputType' => 'text',
'eval' => array('mandatory'=>'true', 'maxlength'=>20, 'tl_class'=>'w50', 'feGroup'=>'details_legend'),
'sql' => "varchar(64) NOT NULL default ''"
);
$GLOBALS['TL_DCA']['tl_calendar_events']['fields']['plz'] = array
(
'label' => &$GLOBALS['TL_LANG']['tl_calendar_events']['plz'],
'inputType' => 'text',
'eval' => array('mandatory'=>'true', 'maxlength'=>5, 'tl_class'=>'w50', 'feGroup'=>'details_legend'),
'sql' => "varchar(64) NOT NULL default ''"
);
langconfig
PHP-Code:
$GLOBALS['TL_LANG']['tl_calendar_events']['adresse'] = array("Adresse", "Sraße und Hausnummer");
$GLOBALS['TL_LANG']['tl_calendar_events']['plz'] = array("Postleitzahl", "Gültige Postleitzahl eingeben");
$GLOBALS['TL_LANG']['tl_calendar_events']['ort'] = array("Stadt", "Name Stadt / Ort der Veranstaltung");
$GLOBALS['TL_LANG']['tl_calendar_events']['location'] = array("Location", "Name Event-Location");
template
PHP-Code:
<div class="event layout_upcoming_rich<?php echo $this->classUpcoming; ?>">
<div itemscope itemtype="http://schema.org/Event">
<a itemprop="url" href="<?php echo $this->href; ?>"title="<?php echo $this->title; ?> (<?php if ($this->day): echo $this->day; ?>, <?php endif; echo $this->date; if ($this->time): ?>, <?php echo $this->time; endif;?>)">
<div itemprop="name"><?php echo $this->title; ?></div>
</a>
<div class="date"><meta itemprop="startDate" content="<?php echo date("Y-m-d", $this->begin); ?>"><?php echo $this->date; ?> <?php if ($this->time): ?>
<span class="time">(<?php echo $this->time; ?> Uhr)</span><?php endif; ?>
</div>
<div class="location" itemprop="location" itemscope itemtype="http://schema.org/Place">
<b><span itemprop="name"><?php echo $this->location; ?></span></b>
<div class="address" itemprop="address" itemscope itemtype="http://schema.org/PostalAddress">
<span itemprop="streetAddress"><?php echo $this->adresse; ?></span>,
<span itemprop="postalCode"><?php echo $this->plz; ?></span>
<span itemprop="addressLocality"><?php echo $this->ort; ?></span>
</div>
</div>
</div>
</div>
Lesezeichen