+ Reply to Thread
Results 1 to 10 of 10

Thread: Publishing date and time

Hybrid View

  1. #1
    Quote Originally Posted by Khaled Chammout View Post
    Hello!
    How can I show the publishing date and time in my listings. Like Today 14:15, Yesterday 14:15, 10 July 14:15. Flynax 4.4, auto wide template. Thank you /Khaled
    Hello Khaled Chammout,

    You can use the following smarty modifier for it, for ex. on listing details page: {$listing_data.Date|date_format:$smarty.const.RL_D ATE_FORMAT}
    Thank you, Curtis.
    @Flynax Company

  2. #2
    Quote Originally Posted by Curtis View Post
    Hello Khaled Chammout,

    You can use the following smarty modifier for it, for ex. on listing details page: {$listing_data.Date|date_format:$smarty.const.RL_D ATE_FORMAT}
    Thank you Curits for fast reply.
    Can you please tell me where to put the code. for ex. in listing details page.

    Thank you
    Khaled Chammout

  3. #3
    Quote Originally Posted by Khaled Chammout View Post
    Thank you Curits for fast reply.
    Can you please tell me where to put the code. for ex. in listing details page.

    Thank you
    Khaled Chammout
    So, if you want use it in the listing details page, that you can add it anywhere in file /templates/your_template/tpl/controllers/listing_details.tpl
    Thank you, Curtis.
    @Flynax Company

  4. #4
    Quote Originally Posted by Curtis View Post
    So, if you want use it in the listing details page, that you can add it anywhere in file /templates/your_template/tpl/controllers/listing_details.tpl
    I did put the code in listing_details.tpl and it worked. But I can't figure out were to put the code to show the date on every listing in list or gallery view. Like these pictures.
    List.jpgGrind.jpg

    Thank you
    Khaled Chammout

+ Reply to Thread