Display Extra Fields on Show Listings Template

Discussion in 'Customizations' started by mattbyrnes, Nov 20, 2009.

  1. mattbyrnes Customer

    I'm trying to get the extra fields I setup in the Categories section to appear when the showlistings.tpl is displayed.

    I tried the solution on this page but it did not work…

    Get Extra Field - 68 Classifieds[]=extra&s[]=fields&s[]=view&s[]=listing
  2. Eric Barnes Guest

    Can you post the code you tried to add? Also be sure you are inside the foreach loop in the showlistings file.
  3. mattbyrnes Customer

    <div style="padding:0px 0px 6px 0px">
    <table class="tableborder" cellpadding="5">
    <tr>
    <td colspan="4" {if $entry.class<>""} class="{$entry.class}"{/if}><a href="{$entry.link}" title="{$entry.title}">{$entry.title}</a></td>
    </tr>

    <!-- Image -->
    <tr>
    <td width="100" rowspan="2"{if $entry.class<>""} class="{$entry.class}"{/if}>
    {if $sDisPhoto == "Y"}
    <a href="{$entry.link}" title="{$entry.title}">
    {if $entry.image != ""}
    <img src="thumbs/small_{$entry.image|escape:"url"}" border="0" />
    {else}
    <img src="images/nophoto.gif" border='0' />
    {/if}
    </a>
    {/if}
    </td>

    <td {if $entry.class<>""} class="{$entry.class}"{/if}>

    {if $sDisCity == "Y"}
    {$entry.city}
    {/if}
    {if $sDisState == "Y"}
    {$entry.state}
    {/if}

    </td>

    <td>

    <!-- HERE IS WHERE I WANT EXTRA FIELDS TO DISPLAY -->

    EXTRAS
    {get_extra_field id=$entry.id fid=1}

    </td>
    </tr>
    <tr>
    <td colspan="3" width="100%"{if $entry.class<>""} class="{$entry.class}"{/if}>{$entry.shortDescription}   <a href="{$entry.link}" title="{$entry.title}">more</a></td>
    </tr>
    </table>
    </div>

Share This Page