Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Having trouble with Calendar Module

Our old forums are still available as a read-only archive.

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

Page: 1
Go to End
Author Topic: 2212 Views
  • Louie
    Avatar
    Community Member
    9 Posts

    Having trouble with Calendar Module Link to this post

    Hi. I downloaded your calendar module thru svn, and I'm hoping to implement it in my website. After i copied and pasted its contents to my website's folder, I am not able to see the new calendar page types on the database after I type db/build/?flush=1. So I figured out I have to change the base class of Calendar.php (ViewableData) to Page:

    'class Calendar extends Page {'.

    After that, when I db/build/?flush=1, I already saw the calendar pages in the database but I'm having some trouble now with accessing the CMS due to some errors probably in the php files I modified. So should I change the extensions back to ViewableData or should I keep it to extending Page? If so, where can I get/download ViewableData object, because I can't seem to find it in the database? Do I have to create a new ContentController for Calendar, or is it already not necessary?

    Any help would be much appreciated, thank you.

  • Briohny
    Avatar
    Community Member
    199 Posts

    Re: Having trouble with Calendar Module Link to this post

    How did you get on with this? I'm having the same problem.

  • Willr
    Avatar
    Forum Moderator
    5497 Posts

    Re: Having trouble with Calendar Module Link to this post

    there is some brief docs here - http://doc.silverstripe.com/doku.php?id=modules:calendar you can read.

  • Briohny
    Avatar
    Community Member
    199 Posts

    Re: Having trouble with Calendar Module Link to this post

    Hey Willr. Yep i've gone through those docs. I'm still at just trying to install the files. The db won't recognise the module unless i change 'class Calendar extends ViewableData {' to 'class Calendar extends Page {' When that installs, then the admin doesn't work.

    Not sure what to do next. Do you have any other ideas?

    Thanks again.

  • Willr
    Avatar
    Forum Moderator
    5497 Posts

    Re: Having trouble with Calendar Module Link to this post

    Well I havent had any dealings with the module and the original developer has since left so Im not too sure how its meant to work sorry!

  • Briohny
    Avatar
    Community Member
    199 Posts

    Re: Having trouble with Calendar Module Link to this post

    No probs. Thanks anyway.

  • Howard
    Avatar
    Community Member
    215 Posts

    Re: Having trouble with Calendar Module Link to this post

    I am having the exact same issue but unfortunatly don't have the skills to fix it...

    2212 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.