Below, please find the code from each of the templates I'm using for my Catalog Lister.
How can I include tags from taxonomy? Thank you!
Here is the code for the "catalog_simple.tpl"
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'] : ''; ?>">
<?php if (count($entry['data'])): ?>
<?php foreach ($entry['data'] as $field=>$data): ?>
<?php if (!in_array($field, array('catalog_name','parentJumpTo'))): ?>
<div class="field <?php echo $field; ?>">
<div class="value"><?php echo $data['value']; ?></div>
</div>
<?php endif; ?>
<?php endforeach; ?>
<?php endif; ?>
<?php if ($entry['showLink'] && $entry['link']): ?>
<div class="link">» Learn More</div>
<?php endif; ?>
<?php if ($entry['linkEdit']): ?>
<div class="linkEdit"><?php echo $entry['linkEdit']; ?></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; ?>
And here is the code for the "mod_cataloglist.tpl"
Code:
<?php if (!$this->searchable): ?>
<?php endif; ?>
<div class="<?php echo $this->class; ?> block"<?php echo $this->cssID; ?><?php if ($this->style): ?> style="<?php echo $this->style; ?>"<?php endif; ?>>
<?php if ($this->headline): ?>
<<?php echo $this->hl; ?>><?php echo $this->headline; ?></<?php echo $this->hl; ?>>
<?php endif; ?>
<span class="total"><?php echo $this->total; ?></span>
<?php if ($this->editEnable): ?>
<div class="addUrl">Add New Item</div>
<?php endif; ?>
<?php echo $this->catalog; ?>
<?php echo $this->pagination; ?>
</div>
<?php if (!$this->searchable): ?>
<?php endif; ?>
Bookmarks