What is the variable for the Date field on listing_details.tpl
(By default the date displays in the common field group; I'd like to place it elsewhere on the page.)
Printable View
What is the variable for the Date field on listing_details.tpl
(By default the date displays in the common field group; I'd like to place it elsewhere on the page.)
OK, I see rlListings.class.php has the following subroutine that puts the date at the end of the first group of fields:
Since I have field group "common" first, I can place the posted date elsewhere on the listing_details.tpl withCode:Only registered members can view the code.
{$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}