Does anybody know where to put this code below in pages to add current date in the title?
Or is there a chance to show up the date from last action in the title?
<?php
echo date("j-M-Y, l");
?>
Thank you for your help!
Severinius
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
- Cash@costelloc
Cash - 0 likes
- rscdev@rscdev
rscdev - 0 likes
- Severinius@severinius
Severinius - 0 likes
You must log in to post replies.It is never idea to change the code distributed with Elgg. It makes upgrades very difficult. Instead, most changes can be done through simple plugins.
http://docs.elgg.org/wiki/How_do_I_find_the_code_that_does_x%3F
In most plugins the title is set in the index.php
...
page_draw($title, $body);
...
You just have to add the date to the title string. e.g.
$title .= date("j-M-Y, l");
Thanks for your help. I will try it today...