Results 1 to 2 of 2

Thread: variable for date on listing_details.tpl

Threaded View

  1. #2
    Senior Member
    Join Date
    Dec 2023
    Posts
    161
    OK, I see rlListings.class.php has the following subroutine that puts the date at the end of the first group of fields:
    Code:
    Only registered members can view the code.
    Since I have field group "common" first, I can place the posted date elsewhere on the listing_details.tpl with
    {$listing.common.Fields.posted_date.value}

    However, I also want to exclude it from the common group since it's displayed elsewhere on the page now.

    Would the way to accomplish this be to exclude the $listing.common.Fields.posted_date.value from showing when common group is built on listing_details.tpl, or would a cleaner solution be to slightly modify that subroutine in rlListings.class.php?

    Goal is to allow me to place the posted date in its own position on the listing_details.tpl page not within another fields group.

    Edit: got it...

    I'm not sure if this is the best way to do this, but to not include the date in the common group, one way is to add an if statement to the /blocks/field_out.tpl

    {if $item.name != 'Posted'}

    ...

    {/if}
    Last edited by Horizon; February 23, 2024 at 03:57 AM.