Adding Tags (Taxonomy) to Catalog Lister
I would like to add a catalog item's tags to my catalog lister template, but they don't appear. Do I have to insert any custom code into my catalog lister template in order for tags to show? Tags are checked in my "visible fields" for the catalog lister module, but that doesn't help.
On this page (http://www.hbagency.com/cases.html), I'm trying to show each item's tags below the title. Any recommendations? Thanks all!
-Justin-
Re: Adding Tags (Taxonomy) to Catalog Lister
Hi,
sorry for my late answer...
Normaly the Tags should be shown in the Template.
Have you more Informations for us?
What Catalog Version are you using? (The best Version is from the SVN, because there are very much Bugs solved and much new features are in it).
Can you give us a Screenshoots from your settings and the code from your Template?
regards
Re: Adding Tags (Taxonomy) to Catalog Lister
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; ?>
Re: Adding Tags (Taxonomy) to Catalog Lister
Ok, that are the default templates? Looks like...
Have you klick the Checkbox in the Lister Module from your Tags?
Only with that I can't realy helb you...
Make Screenshoots of your Settings. And the Version from your Catalog?
At last you can give us the output of the array from the catalog.
regards
Re: Adding Tags (Taxonomy) to Catalog Lister
I am using Catalog version 2.0.0 beta1, build 38.
Please go here to see a screengrab of my Catalog Lister settings: http://www.hbagency.com/files/contao_catalog_grab.jpg
What specifically do you need to see for the output of the array?
Thanks for all your help!
Re: Adding Tags (Taxonomy) to Catalog Lister
Hmm looks OK.
I need the tags from you. But you can give me the full array.
regards
btw: you could make an update of the catalog ;-)
Re: Adding Tags (Taxonomy) to Catalog Lister
Here is a test page that shows the full array:
http://www.hbagency.com/cases_test.html
Is this helpful? Thank you!
Re: Adding Tags (Taxonomy) to Catalog Lister
There is nothing like tags. Have you checked the Lister Module? Habe you klickt the Tags-Field for showing at the Module?
regards