Guten morgen....
Mit der Anweisung die du im thread schreibst komme ich noch nicht ganz ans ziel.
An was ich eigentlich ja ran möchte sind die Werte [galerie] [files]
Ich gebe folgende Anweisung ein
Code:
<div class="galerie"><?php echo $entry['data']['galerie']['files']; ?></div>
Bekomme aber dann nur den Rückgabewert !Array!
Wahrscheinlich ist das de blöde Frage weil nur ne Kleinigkeit fehlt aber wie bekomme ich alle files aufgelistet?
Hier mal kurz die Ausgabe des Catalogmodules:
und unten habe ich noch das template
Schöne Grüße
Joachim
Code:
Array
(
[0] => Array
(
[id] => 1
[catalog_name] => Packages
[parentJumpTo] => 13
[tablename] => packages
[class] => first even
[link] => Details/Info
[url] => packages/items/1.html
[data] => Array
(
[icon] => Array
(
[label] => icon
[type] => file
[raw] => tl_files/icons/icon_packages_big.gif
[value] =>
[files] => Array
(
[0] => tl_files/icons/icon_packages_big.gif
)
[meta] => Array
(
[0] => Array
(
[src] => tl_files/icons/icon_packages_big.gif
[alt] => Icon packages big
[lb] => lbcataloglist0
[w] => 80
[h] => 80
[wh] => width="80" height="80"
[caption] =>
[metafile] =>
)
)
)
[package_headline] => Array
(
[label] => package_headline
[type] => text
[raw] => Gründerpaket Easy
[value] => Gründerpaket Easy
)
[galerie] => Array
(
[label] => galerie
[type] => file
[raw] => tl_files/seitenbilder
[value] =>
[files] => Array
(
[0] => tl_files/seitenbilder/2.jpg
[1] => tl_files/seitenbilder/3.jpg
[2] => tl_files/seitenbilder/4.jpg
[3] => tl_files/seitenbilder/5.jpg
[4] => tl_files/seitenbilder/6.jpg
)
[meta] => Array
(
[0] => Array
(
[src] => system/html/2-8ee9cf94.jpg
[alt] => 2
[lb] => lbcataloglist0
[w] => 15
[h] => 15
[wh] => width="15" height="15"
[caption] =>
[metafile] =>
)
[1] => Array
(
[src] => system/html/3-efbbe456.jpg
[alt] => 3
[lb] => lbcataloglist0
[w] => 15
[h] => 15
[wh] => width="15" height="15"
[caption] =>
[metafile] =>
)
[2] => Array
(
[src] => system/html/4-ea305623.jpg
[alt] => 4
[lb] => lbcataloglist0
[w] => 15
[h] => 15
[wh] => width="15" height="15"
[caption] =>
[metafile] =>
)
[3] => Array
(
[src] => system/html/5-15ffb384.jpg
[alt] => 5
[lb] => lbcataloglist0
[w] => 15
[h] => 15
[wh] => width="15" height="15"
[caption] =>
[metafile] =>
)
[4] => Array
(
[src] => system/html/6-b4c61239.jpg
[alt] => 6
[lb] => lbcataloglist0
[w] => 15
[h] => 15
[wh] => width="15" height="15"
[caption] =>
[metafile] =>
)
)
)
)
)
[1] => Array
(
[id] => 2
[catalog_name] => Packages
[parentJumpTo] => 13
[tablename] => packages
[class] => last odd
[link] => Details/Info
[url] => packages/items/2.html
[data] => Array
(
[icon] => Array
(
[label] => icon
[type] => file
[raw] => tl_files/icons/icon_packages_big.gif
[value] =>
[files] => Array
(
[0] => tl_files/icons/icon_packages_big.gif
)
[meta] => Array
(
[0] => Array
(
[src] => tl_files/icons/icon_packages_big.gif
[alt] => Icon packages big
[lb] => lbcataloglist1
[w] => 80
[h] => 80
[wh] => width="80" height="80"
[caption] =>
[metafile] =>
)
)
)
[package_headline] => Array
(
[label] => package_headline
[type] => text
[raw] => Gründerpaket Profi
[value] => Gründerpaket Profi
)
[galerie] => Array
(
[label] => galerie
[type] => file
[raw] =>
[value] =>
[files] => Array
(
)
[meta] => Array
(
)
)
)
)
)
Template:
Code:
<?php if (count($this->entries)): ?>
<div class="layout_simple">
<?php foreach ($this->entries as $entry): ?>
<div class="item<?php echo $entry['class'] ? ' '.$entry['class'] : ''; ?>">
<div class="galerie"><?php echo $entry['data']['galerie']['files']; ?></div>
<?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; ?>
<?php if ($entry['link']): ?>
<div class="link"><?php echo $entry['link']; ?></div>
<?php endif; ?>
</div>
<?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; ?>
Lesezeichen