• Tag Archives calendar
  • Ultimate Frustration

    I think I’ve reached the end of the road with calendars and Drupal 8.

    None of the plugins I had found worked, so I came up with the brilliant idea of making a copy of my handwritten calendar on TRC and trying it out.  Well, in concept, it was a great idea.  I tried to implement it this afternoon, and it went horribly awry.  Drupal 8 doesn’t let you connect to external databases the same way Drupal 7 does.  None of my MySQL commands will work, nothing will connect.  Drupal 8 wants me to include the DB into its core configuration, which is fine and dandy and all that.  It just means I’d need to rewrite a ton of code in my calendar…. I’ll need to make all the SQL calls use the friggen Drupal API.  I’m not sure I’m ready to get that deep into this.  The Calendar code scares me in places… its a hodge-podge of over 10 years of recompiled insanity.  The final product works and looks amazing, but the back-end is a pretty scary place.

    I guess for now, its back to the drawing board for the new Bradford Website calendar.  I have no idea what to do.

    This has also put the brakes on my TRC Drupal 8 upgrade project for the indefinite future.  If it was just the calendar, it would be one thing.  However, TRC has multiple locations that use an external DB.  The calendar, directory, webcams, several rss feeds, and i’m sure more I can’t even think of right now.  Re-coding all those scripts to use the Drupal 8 API is going to take me a lifetime.

    I hate to say it, but I’m probably going to end up putting off the TRC upgrade until they actually stop supporting 7.  We’ll see….


  • Adventures in Calendering

    I spent the past week working on overhauling the TRC Community Calendar.  It was in some need of some updates some TLC.  I updated the submit pages to make them a bit more user-friendly to start out.  I spent two days trying to add a fancy pop-up calendar picker for the date entry, but had to give up in the end. The submit form is too complex to try and shoehorn in some javascript or the CSS to do the pop-up magic.  It has too many levels and built-in checks and madness for me to fully understand.

    I even got some help on updating a ton of events from Susie at the Milo Town Office. I got to overhaul a good portion of the calendar, which has needed to be done for some time. We had a lot of outdated stuff in there.  I’ve got a few events that still need to be checked, but the calendar is looking much better now.

    Lately I’ve been pretty focused on making the site mobile-friendly, and I was concerned about the calendar.  It actually gets pretty messed up on mobile viewing in Portrait mode, but it works perfect if you’re in landscape. This made me pretty happy, as overhauling that calendar would be like having a root canal.  The code is old, and pretty clunky in places, but it works GREAT.  Every time I go in to edit, I make sure I clean it up a bit and improve things.

    Thats all for now.  For my next trick, I’ll be overhauling the TRC Local Directory 🙂

    TRC Community Calendar