"New" Next to A New Listing

3 posts by 3 authors in: Forums > CMS Builder
Last Post: September 16, 2010   (RSS)

In the reality manage product we use to love when you added a new property and then once the property was pushed live it would display "NEW" in red for like 5 days. Does the new CMS application have that ability?



Thanks.



RIT
Jason Glass

Re: [rentittoday] "New" Next to A New Listing

By Chris - September 16, 2010

Hi RIT,

CMS Builder keeps track of the date that records are created, so you can implement this with a little bit of PHP:

<?php if (time() - strtotime($record['createdDate']) < 60*60*24*5): ?>
<span style="color: red;">NEW</span>
<?php endif ?>


Note that 60*60*24*5 is the number of seconds in 5 days.

I hope this helps! Please let me know if you have any questions.
All the best,
Chris