Breadcrumb - adding a date

Professional Jomal template designed to be easily adaptable to all kinds of business
GK User
Fri Oct 12, 2012 4:22 am
How can I add today's date on the breadcrumb?

Like on the website here?

http://www.residentialpm.com.au/
User avatar
Junior Boarder

GK User
Fri Oct 12, 2012 8:43 am
Solution how to get current day at Joomla is here >>
http://docs.joomla.org/JFactory/getDate

You need to use JFactory class and function getDate() like here :

Code: Select all
$date =& JFactory::getDate();
echo 'Current date and time is: ' . $date->toFormat() . "\n";


Then this code place in proper place in root/templates/gk_corporate2/html/mod_breadcrumb/
User avatar
Platinum Boarder

GK User
Sat Oct 13, 2012 7:47 pm
Thanks!
I did what you said and I can get it to show up in the breadcrumb.
I'm really new to Joomla and am struggling to set it up in the following format (with a default to the right hand side of the breadcrumb):
Saturday, 13 Oct 2012
Any suggestions?
Thanks
Rich
User avatar
Junior Boarder

GK User
Tue Oct 16, 2012 9:46 am
All informations about date formating you have got here http://docs.joomla.org/API16:JHtml/date
Please look at Examples area.
User avatar
Platinum Boarder

GK User
Sat Oct 20, 2012 9:51 pm
I ended up finding an extension called mod_date-2.2.34b that did the trick for me.
All front end configuration.
User avatar
Junior Boarder

GK User
Sun Oct 21, 2012 12:01 pm
Of course this is a solution but if you need to paste date inside default breadcrumb module this is the only way to achieve this.
User avatar
Platinum Boarder

GK User
Sun Oct 21, 2012 4:49 pm
Actually that extension did put it into the breadcrumb position, problem.
Thanks for all your help.
Cheers
Rich
User avatar
Junior Boarder


cron