Results 1 to 8 of 8

Thread: Adding Tags (Taxonomy) to Catalog Lister

  1. #1
    New user
    Join Date
    03-25-10.
    Location
    Boston & San Antonio
    Posts
    28

    Default 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-
    Learn more about our agency at http://www.hbagency.com
    Follow the agency on Twitter at http://www.twitter.com/hb_agency
    Follow me on Twitter at http://www.twitter.com/jrh_creative

  2. #2
    User MacKP's Avatar
    Join Date
    06-19-09.
    Location
    Duisburg (Germany)
    Posts
    211

    Default 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
    Mediendepot Ruhr
    For real-time chat the (inofficial) Chatroom in IRC:
    -> irc.freenode.net #contao | irc.freenode.net #contao.de

  3. #3
    New user
    Join Date
    03-25-10.
    Location
    Boston & San Antonio
    Posts
    28

    Default 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; ?>
    Learn more about our agency at http://www.hbagency.com
    Follow the agency on Twitter at http://www.twitter.com/hb_agency
    Follow me on Twitter at http://www.twitter.com/jrh_creative

  4. #4
    User MacKP's Avatar
    Join Date
    06-19-09.
    Location
    Duisburg (Germany)
    Posts
    211

    Default 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
    Mediendepot Ruhr
    For real-time chat the (inofficial) Chatroom in IRC:
    -> irc.freenode.net #contao | irc.freenode.net #contao.de

  5. #5
    New user
    Join Date
    03-25-10.
    Location
    Boston & San Antonio
    Posts
    28

    Default 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!
    Learn more about our agency at http://www.hbagency.com
    Follow the agency on Twitter at http://www.twitter.com/hb_agency
    Follow me on Twitter at http://www.twitter.com/jrh_creative

  6. #6
    User MacKP's Avatar
    Join Date
    06-19-09.
    Location
    Duisburg (Germany)
    Posts
    211

    Default 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 ;-)
    Mediendepot Ruhr
    For real-time chat the (inofficial) Chatroom in IRC:
    -> irc.freenode.net #contao | irc.freenode.net #contao.de

  7. #7
    New user
    Join Date
    03-25-10.
    Location
    Boston & San Antonio
    Posts
    28

    Default 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!
    Learn more about our agency at http://www.hbagency.com
    Follow the agency on Twitter at http://www.twitter.com/hb_agency
    Follow me on Twitter at http://www.twitter.com/jrh_creative

  8. #8
    User MacKP's Avatar
    Join Date
    06-19-09.
    Location
    Duisburg (Germany)
    Posts
    211

    Default 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
    Mediendepot Ruhr
    For real-time chat the (inofficial) Chatroom in IRC:
    -> irc.freenode.net #contao | irc.freenode.net #contao.de

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •