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're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

All other Modules /

Discuss all other Modules here.

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

Diary


Go to End


4 Posts   1676 Views

Avatar
ste

Community Member, 8 Posts

8 August 2009 at 2:56am

I've installed Diary Module and it seems to work fine - I was wondering if it was possible to customise the Diary Holder just show active events. I'd like to use this as an Availably form for a Holiday let so I don't want to dates that are empty.

Ste

Avatar
joshy

Community Member, 57 Posts

9 August 2009 at 5:44am

Yes, it's possible. Give it a go and if you get stuck, post your code :).

For a starting point, check out the tutorials, especially http://doc.silverstripe.org/doku.php?id=tutorial:5-dataobject-relationship-management

Good luck!

Josh

Avatar
ste

Community Member, 8 Posts

11 August 2009 at 9:10am

Seemed to have got it, just a simple if test for the $events variable so only populates the field if there is an actual event, if no event the whole date line is ignored - just what I want.

Ste

Avatar
Funfair77

Community Member, 49 Posts

16 April 2010 at 11:20pm

Hello ste,

You wrote that you solved the empty day's problem.
can you post your code, I'm not that good php and could't find it.

Do you know how to show more months on one page?!

Thank you!

Marnix