Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

All other Modules /

Discuss all other Modules here.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Events Module - Announcements on home page


Go to End


990 Views

Avatar
bones

Community Member, 110 Posts

28 January 2014 at 11:17pm

Hello

I'm using the Event Calendar with SS 2.4.10. I've successfully managed to get events listed in the side bar of every page. However, the title of Announcements doesn't show.

Take a look at the homepage at http://www.sugarnspice.org.uk. In the sidebar, you'll see that 19th Feb doesn't have a title, but in the full list on the Calendar page (http://www.sugarnspice.org.uk/activities) it does. This "event" is an announcement.

The method for including the calendar events is:

mysite/code/page.php

function UpcomingEvents() 
		{ 
		return DataObject::get_one("Calendar")->Events(3); 
		}

(you'll also notice that the number of events is set at 3, but 5 are actually shown. I'm not especially bothered by this though).

Any help you can provide in getting the Announcement title to also be displayed would be very much appreciated. Thank you :)