Jump to content
Sign in to follow this  
PeterD

Display Expiration Date

Recommended Posts

Last question: In the "Ordering Options" I want to integrate a Expiration Date order. Can I use the field "jr_publish_down" then? And how I order to show the next coming date on the top.

Share this post


Link to post

The expiration date is not a custom field so you can't do that. There isn't a quick way to incorporate the expiration into the sorting functionality because there's nothing in the code to support this feature.

Share this post


Link to post

You can edit any of the theme files for listings and place it there or you can create a new banner custom field and use the PHP output format with this code:

$Time = ClassRegistry::getClass("TimeHelper");
return $Time->nice($entry['Listing']['publish_down']);

Share this post


Link to post

 

You can edit any of the theme files for listings and place it there or you can create a new banner custom field and use the PHP output format with this code:

$Time = ClassRegistry::getClass("TimeHelper");
return $Time->nice($entry['Listing']['publish_down']);

You're a Superstar!!

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Please refer to our Privacy Policy.