blueberry_08 Posted October 21, 2013 Share Posted October 21, 2013 Hi, What code do I add so I can display the date I modified the page? Thanks a lot. Link to comment Share on other sites More sharing options...
DaveP Posted October 21, 2013 Share Posted October 21, 2013 <?php echo $page->modified; ?> http://cheatsheet.processwire.com/ is your friend. Link to comment Share on other sites More sharing options...
blueberry_08 Posted October 21, 2013 Author Share Posted October 21, 2013 Okay. Is there a way I can post it like F j, Y? Link to comment Share on other sites More sharing options...
MatthewSchenker Posted October 21, 2013 Share Posted October 21, 2013 Greetings, As always, ProcessWire makes it easy! Here you go: <?php echo date("F j, Y", $page->modified); ?> Thanks, Matthew 1 Link to comment Share on other sites More sharing options...
blueberry_08 Posted October 21, 2013 Author Share Posted October 21, 2013 Thanks! Link to comment Share on other sites More sharing options...
adrian Posted October 21, 2013 Share Posted October 21, 2013 If you want other date/time formats, check out the PHP manual:http://php.net/manual/en/function.date.php Link to comment Share on other sites More sharing options...
ryan Posted October 26, 2013 Share Posted October 26, 2013 As always, ProcessWire makes it easy! <?php echo date("F j, Y", $page->modified); ?> Or in this case, just PHP 1 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now