Hallo Stefan,
catalog ist version 2.0.0 beta1 60
als vorlage habe ich das template "catalog_simple.tpl" genommen,
und jetzt siehts so aus:
Code:
<?php
$myListFilter = array('bundesland', 'angebotsformen','zielgruppen');
$filterContent = array();
foreach($myListFilter as $filterKey) {
$fC_temp = isset($_GET[$filterKey]) ? explode(',', $_GET[$filterKey]) : NULL ;
if(sizeof($filterCont_temp)==1) $fC_temp = array($_GET[$filterKey]);
$filterContent[$filterKey] = $fC_temp;
}
?>
<?php if (count($this->entries)): ?>
<div class="layout_simple">
<?php foreach ($this->entries as $entry): ?>
<?php
foreach($filterContent as $filterKey=>$fC) {
// wenn kein Filter gesetzt -> anzeigen
$showEntry = (sizeof($fC)==0);
if(!$showEntry) {
// wenn Filter gesetzt
$entry_dataArray = array();
foreach($entry['data'][$filterKey]['ref'] as $entry_data) {
array_push($entry_dataArray, $entry_data['alias']);
}
foreach($fC as $filterItem) {
if(in_array($filterItem, $entry_dataArray)) $showEntry = true;
}
}
if($showEntry!=true) break;
}
?>
<?php if($showEntry) : ?>
<div class="item<?php echo $entry['class'] ? ' '.$entry['class'] : ''; ?>">
<?php foreach ($entry['data'] as $field=>$data): ?>
<?php if (!in_array($field, array('catalog_name','parentJumpTo'))): ?>
<div class="field <?php echo $field; ?>">
<div class="label"><?php echo $data['label']; ?>: </div>
<div class="value"><?php echo $data['value']; ?></div>
</div>
<?php endif; ?>
<?php endforeach; ?>
<div style="clear:both">
<?php if ($entry['showLink'] && $entry['link']): ?>
<div class="link link_vor"><?php echo $entry['link']; ?></div>
<?php endif; ?>
<?php if ($entry['linkEdit']): ?>
<div class="linkEdit link_vor"><?php echo $entry['linkEdit']; ?></div>
<?php endif; ?>
</div>
<BR>
</div>
<?php endif; // showEntry Abfrage ?>
<?php endforeach; ?>
</div>
<?php else: ?>
<?php if ($this->condition): ?>
<div class="condition"><?php echo $this->condition; ?></div>
<?php else: ?>
<p class="info">There are no entries matching your search.</p>
<?php endif; ?>
<?php endif; ?>
hoffe das hilft weiter ..
beste grüße,
jan