Jump to:

753 Posts in 310 Topics by 289 members

Widgets

SilverStripe Forums » Widgets » Event Calendar Widget

Discuss SilverStripe Widgets.

Moderators: martimiz, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba, simon_w

Page: 1 2
Go to End
Author Topic: 7614 Views
  • Anonymous user
    Avatar
    Community Member
    1 Post

    Event Calendar Widget Link to this post

    A widget to display a summary of your events from the "event_calendar" module.

    It uses the jQuery UI Datepicker to show the actual calendar.

    Features:

    * All of the standard CalendarWidget features but week selection.
    * Display a calendar widget with selectable dates.
    * Uses the jQuery UI Theming framework.
    * Allows for custom jQuery inclusion, so no duplicate scripts.
    * Has a live mode in which a list of actual events is requested from the server, and only those dates are selectable.
    * Allows for both synchronous and asynchronous requests.
    * If requests fail, the normal non-live behaviour is restored.

    The module allows for translations (it's just 5 strings or so!), and comes with English and German files.

    (Not sure what is happening here, but the forum is giving the archive funny names and does not let me remove attachments. Version 1.3 is the current one.)

  • Anonymous user
    Avatar
    Community Member
    1 Post

    Re: Event Calendar Widget Link to this post

    I have added a button to the month name, so like in the standard widget, you can click this to get to the overview.

  • devnull
    Avatar
    Community Member
    7 Posts

    Re: Event Calendar Widget Link to this post

    question ... is this compatible with 2.3.3 ... this doesn't do anything for me.

  • Anonymous user
    Avatar
    Community Member
    1 Post

    Re: Event Calendar Widget Link to this post

    I am using 2.3.3 as well, so the answer is yes.

    What do you mean when you say it "doesn't do anything"? Does the widget not show up in your WidgetAreaEditor, does it not show up on your site, or does the calendar not load?

  • devnull
    Avatar
    Community Member
    7 Posts

    Re: Event Calendar Widget Link to this post

    Tessory, sorry for the short reply. It was getting late for me.
    I wanted to look into this more before i posted anything to make sure it wasn't something i was mistaking though. It seems I can't pick this in the widgetarea in the cms for any page.
    I noticed a trend in widgets that don't work for me. all the widgets that don't work use the functions to return static $title and $description. The widgets that work use a declaration of static $title = '' instead of function calls. also there are no "_t()" calls in the ones that work.

    Thank you for any help, I hope I am not just missing something here.

    -devnull

  • Pipifix
    Avatar
    Community Member
    54 Posts

    Re: Event Calendar Widget Link to this post

    It seems the widget(1.3) doesn't work in 2.4Rc1. No rendering in the sidebar. Backend works fine. Any tips?

    Thanks Pipifix

  • Jstein
    Avatar
    Community Member
    2 Posts

    Re: Event Calendar Widget Link to this post

    On my site, I think I'm getting the request failed non-live version of the widget. How do I trouble shoot to find out if the request has failed and how to fix it? The widget has all dates selectable, not just the dates with events.

    Thank you,
    Jay

  • Lavan
    Avatar
    Community Member
    2 Posts

    Re: Event Calendar Widget Link to this post

    Hey Pipipix

    We have finally got this widget to work. Not sure if this is the right way to go about it, but it made it work for us (with out having to hard code it into the page).

    In the EventCalendarWidget.php we first changed the "class EventCalendarWidget_Controller extends Controller" to be "class EventCalendarWidget_Controller extends Widget_Controller" .

    Then moved the
    public function Content()
    {
    ...............
    ...............
    }
    down in to the Widget_Controller. I think that alternativly you could just put an Initi fuction in the widget_Controller that calls this function.

    Now the eventcalendar widget shows up in my side bar.

    Hope that helps...
    L

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