Updated date vs date created

Post Reply
HowardB
Sr. Bludit
Posts: 40
Joined: Sat Jun 04, 2022 1:31 pm
Been thanked: 2 times

In the ANDY theme it shows the date created and not date updated which looks odd to users
In this theme and any others with the same configuration can the date format be changed to date updated

many thanks
User avatar
Edi
Site Admin
Posts: 3121
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Has thanked: 54 times
Been thanked: 77 times
Contact:

The following code snippet shows the date of the content:

Code: Select all

<?php echo $page->date(); ?>
In the theme Andy you can find it in the followind templates:
  • home.php at line 43,
  • page.php at line 24.
Instead of $page->date() you can use $page->dateModified() to show the date of the last modification of the content:

Code: Select all

<?php echo $page->dateModified(); ?>
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets
HowardB
Sr. Bludit
Posts: 40
Joined: Sat Jun 04, 2022 1:31 pm
Been thanked: 2 times

Many thanks just what I wanted
Post Reply