Jump to:

10979 Posts in 2722 Topics by 1815 members

All other Modules

SilverStripe Forums » All other Modules » Diary

Discuss all other Modules here.

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

Page: 1
Go to End
Author Topic: 1325 Views
  • ste
    Avatar
    Community Member
    8 Posts

    Diary Link to this post

    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

  • joshy
    Avatar
    Community Member
    57 Posts

    Re: Diary Link to this post

    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

  • ste
    Avatar
    Community Member
    8 Posts

    Re: Diary Link to this post

    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

  • Funfair77
    Avatar
    Community Member
    49 Posts

    Re: Diary Link to this post

    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

    1325 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.