10808 Posts in 2494 Topics by 1782 members
|Go to End|
18 June 2010 at 2:53am
Hi, I added one field to the CalendarEvents.php which is "Summary".
ind the DB array I put 'Summary' => 'Varchar(255)',
and in the getCMSFields I put $f->addFieldToTab("Root.Content.Main", new TextField("Summary","One Line Summary"), "Content");
But in my CalendarEvents.ss file I have $Summary and nothing is showing up.
I entered text in the admin for it.
18 June 2010 at 3:34am
The Events() control, despite the misleading name, actually returns CalendarDateTime objects, because Events can have many dates. You need to use the $Event accessor.. $Event.Summary
This is all in the docs under "extending event calendar"..
18 June 2010 at 3:50am
working now. I had tride $Events.Summary and $Summary but not $Event.Summary
|Go to Top|