Labels im Frontend bei Mehrsprachigkeit anpassen.
system/config/langconfig.php anpassen
[/SIZE][/FONT][/COLOR]
customcatalog_default.html5 anpassen
system/config/langconfig.php anpassen
Code:
[COLOR=#2B2E2F][FONT=arial][SIZE=14px]if[I]($GLOBALS['TL_LANGUAGE'] == 'en') { $GLOBALS['TL_LANG']['cc_meinKatalog']['alias des Attributes'] = 'EN Label'; }[/I]
customcatalog_default.html5 anpassen
PHP-Code:
<?php
/**
* Custom catalog template example file
*/
?>
<div class="<?php echo $this->class; ?> block" <?php echo $this->cssID; ?>>
<div class="title"><?php echo $this->title; ?></div>
<?php if(!$this->empty): ?>
<div class="content block">
<?php foreach($this->entries as $entry): ?>
<div class="<?php echo $entry->get('class'); ?> block">
<?php foreach($entry->get('fields') as $field): ?>
<?php if($field->hidden) {continue;} ?>
<div class="<?php echo $field->class; ?>">
<div class="label"><?php echo $GLOBALS['TL_LANG'][$this->getCustomCatalog()->getTable()][$field->attribute()->get('alias')] ?: $field->label; ?></div>
<div class="value"><?php echo $field->html(); ?></div>
</div>
<?php endforeach; ?>
<?php if($entry->get('more')): ?>
<p class="more"><?php echo $entry->get('more'); ?></p>
<?php endif; ?>
</div>
<?php endforeach; ?>
</div>
<?php else: ?>
<p class="info empty"><?php echo $this->empty; ?></p>
<?php endif;?>
</div>