+ Reply to Thread
Results 1 to 2 of 2

Thread: primary category issue

  1. #1
    Master
    Join Date
    Oct 2019
    Location
    Hungary
    Posts
    403

    primary category issue

    In 4.8.2, there is again a primary category. This is a good idea, but I have a category for which I display other fields and here comes the problem.
    In listing.tpl I use the following code because I have a field that is not in the primary category so this code does not show only the most recent and highlighted. However, the listing page does not show the field I want.

    {if $item.Key == 'square_feet'}
    <span style="font-weight: 600; color: #111111; padding: 4px; font-size:14px;">Meret:</span><span style="font-family: Arial; color: #db1c1f;">{$item.value}</span>
    {/if}

    {if $item.Key == 'lot_size'}
    <span style="font-weight: 600; color: #111111; padding: 4px; font-size:14px;">Meret:</span><span style="font-family: Arial; color: #db1c1f;">{$item.value}</span>
    {/if}

    {if $item.Key == 'bedrooms'}
    <span style="font-weight: 600; color: #111111; padding: 4px; font-size:14px;">Szobak:</span><span style="font-family: Arial; color: #db1c1f;">{$item.value}</span>
    {/if}

    {if $item.Key == 'epuletszerkezet'}
    <span style="font-weight: 600; color: #111111; padding: 4px; font-size:14px;">Epitesi mod:</span><span style="font-family: Arial; color: #db1c1f;">{$item.value}</span>
    {/if}

    {if $item.Key == 'tulajdonjog'}
    <span style="font-weight: 600; color: #111111; padding: 4px; font-size:14px;">Tulajdonviszony:</span><span style="font-family: Arial; color: #db1c1f;">{$item.value}</span>
    {/if}
    Attached Images Attached Images
    Last edited by Jenő Kocsi; June 29, 2021 at 01:39 PM.

  2. #2
    Master
    Join Date
    Oct 2019
    Location
    Hungary
    Posts
    403
    Solved. So my question is no longer relevant.

+ Reply to Thread