Jump to:

10850 Posts in 2517 Topics by 1793 members

All other Modules

SilverStripe Forums » All other Modules » Event calendar announcements on homepage

Discuss all other Modules here.

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

Page: 1 2
Go to End
Author Topic: 2955 Views
  • UncleCheese
    Avatar
    4085 Posts

    Re: Event calendar announcements on homepage Link to this post

    At this point all I can offer to you is that I go in and take a look at what is going on. If you would like to setup a time for one-on-one support, you can contact me through my website http://www.carlinowebdesign.com

  • coffeymachine
    Avatar
    Community Member
    10 Posts

    Re: Event calendar announcements on homepage Link to this post

    Hi UncleCheese,

    I am having a strange issue with this. Everything is working, except events coming from an .ics feed that are scheduled for today are not showing up. I tried using the RecentEvents function to no avail. The event scheduled for today is definitely in the .ics file, and it shows up fine in the regular event calendar page. Events and announcements created within SilverStripe work fine too, it is only the announcements from the .ics feed that are scheduled for today that aren't working. All the rest show up.

    Any thoughts? Anybody else run across this issue?

    Thanks for all your hard work!

  • sureshk
    Avatar
    Community Member
    10 Posts

    Re: Event calendar announcements on homepage Link to this post

    Hi UncleCheese,
    I have a requirement with Event Calendar. Like "UpcomingAnnouncements" showing in all pages, how can I show the Calendar Widget in all pages at a right side?
    I have installed Event Calendar module and created one Calendar page and its Events. I need to show Calendar of these Events in all pages at the right side of the page. How can I do this?

  • UncleCheese
    Avatar
    4085 Posts

    Re: Event calendar announcements on homepage Link to this post

    The $CalendarWidget function is decorated into your SiteTree. So if you have only one calendar, all you need is $CalendarWidget on your template on any descendant of SiteTree.

    If you have multiple calendars, you need to pass the urlsegment of the calendar you want to control the widget. $CalendarWidget(my-calendar), for instance.

  • mathiasmex
    Avatar
    Community Member
    28 Posts

    Re: Event calendar announcements on homepage Link to this post

    Hi Uncle Cheese,

    is it possible to have a specific Event displayed ?
    Something like that:

    function MyWorkshop() {
       if (isset($_POST['Workshop']) && is_array($_POST['Workshop'])) {
          echo "Nothing to past";
       } else {
          $workshop = DataObject::get_one('Workshop');
       return $workshop;
       }
    }      

    What I am after is to pass the event details into a registration form. The code shown here is in my forms.php. But I get only random Event (or is it just the first Event?).

    Thanks for your help,

    mathiasmex

  • sureshk
    Avatar
    Community Member
    10 Posts

    Re: Event calendar announcements on homepage Link to this post

    Thank you UncleCheese. It is working fine. I just used like
    $CalendarWidget(events-calendar) in RightMenu.ss template file .
    It is working fine. Thank you very much.

    2955 Views
Page: 1 2
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.