CodeIgniter Forums
[SOLVED]adding more content to the calendar than just the numbers - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: [SOLVED]adding more content to the calendar than just the numbers (/showthread.php?tid=20876)



[SOLVED]adding more content to the calendar than just the numbers - El Forum - 07-24-2009

[eluser]bobbob[/eluser]
I am guessing I am just missing something but is there a way to add lets say event titles to the fields in the CI calendar?
By default there are clickable dates but can more text be added?


[SOLVED]adding more content to the calendar than just the numbers - El Forum - 07-24-2009

[eluser]sophistry[/eluser]
This page of the user guide covering the Calendaring Class shows how to do it.

You need to change the way the {content} tag is handled in the calendar template. In the default set up it is turned into an href, but you can change the template to do whatever you want (within limits).

I created OOCalendar to allow more advanced handling of data and better calendar creation. Check it out on the wiki page:
http://codeigniter.com/wiki/OOCalendar/

Cheers.


[SOLVED]adding more content to the calendar than just the numbers - El Forum - 07-24-2009

[eluser]bobbob[/eluser]
After posting i noticed that the template can be played with a fair amount as you pointed out.
Thanks for the help.
I will check out your class when time offers itself to me :-)