+ Reply to Thread
Results 1 to 5 of 5

Thread: add a highlighted frame

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

    add a highlighted frame

    listing_details I want to add a frame if the ad is in featured status.

    style.css: section # controller_area.featured we have it, but how next?

    <section id="controller_area" class="featured">{strip}
    {if $pageInfo.Page_type == 'system'}
    {include file=$content}
    {else}
    <div class="content-padding">{$staticContent}</div>
    {/if}
    {/strip}</section>
    I tried to solve it this way, but it's not good because it puts the frame where it shouldn't be.
    Last edited by Jenő Kocsi; April 12, 2021 at 10:32 AM.

  2. #2
    Flynax developer Rudi's Avatar
    Join Date
    Dec 2014
    Location
    Planet Earth
    Posts
    3,138
    What frame on the details page do you mean exactly?

  3. #3
    Master
    Join Date
    Oct 2019
    Location
    Hungary
    Posts
    403
    Nevtelen.png

    As with this image, if an ad is highlighted then the details page would give her such a frame indicating that it is highlighted.

    <section id="controller_area" class="featured">{strip}
    {if $pageInfo.Page_type == 'system'}
    {include file=$content}
    {else}
    <div class="content-padding">{$staticContent}</div>
    {/if}
    {/strip}</section>
    content.tpl I tried this solution in a file, but it gives a framework for everything.

  4. #4
    Flynax developer Rudi's Avatar
    Join Date
    Dec 2014
    Location
    Planet Earth
    Posts
    3,138
    You'd better modify listing_details.tpl from tpl > controllers

    replace:
    Code:
    Only registered members can view the code.
    with:
    Code:
    Only registered members can view the code.
    and apply your css style to div.listing-details.featured

  5. #5
    Jen was cooperated with me and things worked out. I'm glad that Flynax community is friendly and everyone keeps working with each other to learn more and improve our own project.
    Thanks
    Attached Images Attached Images
    Last edited by Wei Hong; April 13, 2021 at 08:56 AM.

+ Reply to Thread