Jump to:

10986 Posts in 2724 Topics by 1817 members

All other Modules

SilverStripe Forums » All other Modules » Event Calendar Adding Venue to Date & Time

Discuss all other Modules here.

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

Page: 1
Go to End
Author Topic: 471 Views
  • iancartwright
    Avatar
    Community Member
    1 Post

    Event Calendar Adding Venue to Date & Time Link to this post

    Hi
    I have been following the tutorial on http://doc.silverstripe.org/old/recipes:extending_the_event_calendar and have been having problems trying to add the location when I am extending CalendarDateTime.
    I have copied the code from the tutorial exactly and everything works fine up until I get to the following part of the tutorial and when i rebuild the database there is no location on the Date and Time tab.
    <?php
    class WorkshopDateTime extends CalendarDateTime
    {
    static $db = array (
    'Location' => 'Varchar(50)'
    );

    static $has_one = array (
    'Workshop' => 'Workshop'
    );
    }
    static $has_many = array (
    'Dates' => 'WorkshopDateTime'
    );
    ?>

    Any help would be much appreciated
    Thanks

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