Spokane Daytime Drupal Group - Holiday edition! - December 12 - Argonne Library

Events happening in the community are now at Drupal community events on www.drupal.org.
jhodgdon's picture
Start: 
2019-12-12 10:00 - 12:00 America/Los_Angeles
Organizers: 
Event type: 
User group meeting

We hope you can join us for the next daytime meeting of the Spokane Drupal User Group -- a special holiday edition!

To celebrate the holidays, you can wear an ugly holiday sweater, and bring a holiday treat to share with 5-12 other Drupalizers. Sweaters and treats are both optional. Also, please keep in mind that alcohol is not permitted in the library meeting room, and we have to leave the place clean.

When
Thursday, December 12, 2019, 10 AM to noon
We usually meet on a Thursday morning at a library out in the Spokane Valley area. Log in and join the Spokane Drupal User Group (see sidebar on https://groups.drupal.org/spokane-wa ) to be notified of future meetings, events, and discussions (typically just a few email messages per month).
Where
Spokane County Library - Argonne branch, 4322 N Argonne Rd, Millwood. We are back in the (large) meeting room. Come in the door from the parking lot, and go down to the other end of the hallway (don't go into the part of the library where the books, checkout desk, etc. are).
To be reminded, sign up!
To receive an email reminder closer to the date of the meeting, log in and click the "Sign up" button; log in and click "Cancel signup" at a later time if your schedule changes and you can no longer come. There's no obligation to come if you sign up (but we hope you will!). There's also no obligation to sign up in order to come (it's up to you if you want a reminder or not).
What
We spend two hours in a question and answer format, with the participants around a table, and a laptop with a projector. Come with questions about a project you're working on, something you've learned that you'd like to share with others, a desire to improve Drupal in some way (documentation, programming, design, marketing etc.), or a desire to help others with their projects and questions. Or just come and listen and observe.
Who
Everyone is welcome -- the only prerequisite is having some interest in Drupal. This group is usually 5-10 friendly people, with experience levels ranging from novice to expert, so you'll fit right in. Because of the size of the group, you will have time to share something you've learned, or get your questions answered, or both!
Need a ride?
If transportation is keeping you from attending, please log in and post a comment here. Our usual attendees come from all around the area: downtown Spokane, South Hill, Mead, Hayden, Spokane Valley, Post Falls, etc. So, we can probably find someone to give you a ride without going too much out of their way.

Comments

Treats/sweaters reminder

jhodgdon's picture

Reminder: Thursday is the holiday edition of our Drupal Group meeting!

You are welcome to bring a holiday treat. Lisa will unfortunately not be joining us this week, so you probably do not need to worry about treats being gluten-free. I hope to see everyone else -- and remember, holiday sweaters and treats are totally optional!

Meeting notes

jhodgdon's picture

Here's what we talked about today, in between admiring the holiday sweaters and eating the yummy treats:

  • Upcoming Events:
    - Pacific Northwest Drupal Summit - Seattle - March 28-29, 2020. See https://pnwdrupalsummit.org/ to sign up for the newsletter and announcements. It's a great event -- I recommend that everyone go!
    - There is a calendar for other Drupal events:
    https://groups.drupal.org/events
    and for DrupalCon in particular: https://events.drupal.org/ (next one is in Minneapolis)
  • Spokane Community College is adding Content Management Systems, including Drupal, to its Web Development degree program, thanks to Shawn!
  • How to deal with a module/theme project on drupal.org that is not getting updates or has some issues:
    - See https://www.drupal.org/node/251466 -- information on how to take over a project that is abandoned
    - If it is a Drupal 7 version that you're interested in... No maintainer is really interested in maintaining Drupal 7 versions, so probably you should just make it into a custom module on your site and do whatever you want.
    - If there are things you need for the D7 version, you might also create an issue in the project against Drupal 8, to suggest the same features be added to Drupal 8. You can post a patch to show what you did.
  • In Drupal 7, entity arrays look something like this in PHP:
    $user['field_foo_bar']['und'][0]['value']

    To access the values, you'll need to do something kind of like this:

    // Loop over languages
    foreach ($user[$fieldname] as $language => $info) {
      // Loop over multiple values
      foreach ($info as $delta => $item) {
        // Now you're looking at one field item value, which is an
        // array of the database columns for that type of field item. You will
        // need to figure out what field type it is.
        switch ( field type) {
          case 'text':
            $value = $item['value'];
          ...

        }
  • If you are doing active web development, set your browser to not cache files/data. This will make it so whenever you load a page, the JavaScript, images, CSS, etc. will reload instead of using the previously-loaded files.

    In Safari, go to Preferences > Advanced > Show development menu. Then close preferences. Now go to Development > Disable caches.

    In Drupal 8, if you are developing, you might want to turn off the "Internal Page Cache" and "Internal Dynamic Page Cache" and "BigPipe" modules. Also go to admin > configuration > performance and turn off various cache settings there.

    You'll want all of these reversed on a production site, for speed!

  • Transferring content/data from a Drupal 7 to a Drupal 8 site... You have 2 options:
    - Use the Migrate framework, which is in Core in Drupal 8. Core and many contrib modules already have migrate plugins, so much of your data will transfer already. You can write plugins yourself to migrate data handled by your custom modules and contrib modules that don't already have migrate plugins. This will end up with a copy of your site, with the same config/structure. Or you could write Migrate plugins that would migrate into a new structure.
    - Use Views to export the data to JSON, and Feeds to import the data. You may also need to write some Feeds plugins to handle things that Feeds doesn't yet support (it is under development for Drupal 8, but does work to some extent). This is possibly a better option if you want to change the structure.
    - Get your D7 site as clean and streamlined as possible first! Turn off modules, delete unused fields, get rid of outdated content, etc.
  • Drupal 8.9 and Drupal 9.0 should be coming out in 6 months. They will be functionally the same. The only difference is that the code that was marked as "deprecated, will be removed in 9" will be removed.

    So if you are developing now for Drupal 8, you should be fine in Drupal 9 as long as you do not use the deprecated code.

    There is a way to test your code for deprecation and prepare for Drupal 9. See this section:
    https://www.drupal.org/docs/9/how-to-prepare-your-drupal-7-or-8-site-for...

  • Can you use Drupal for a high-volume site? Yes! Shawn saw a presentation on this at BADCamp 2018:
    https://2018.badcamp.org/session/best-practices-how-we-run-decoupled-web...
  • Site to build/print games:
    https://www.thegamecrafter.com/
    You can use GIMP to design cards, using scripts

ps: projector

jhodgdon's picture

I got my projector home and plugged it in exactly how I had it at the meeting, and the colors look normal now. ?!? Maybe I didn't check all the connections when I unplugged/plugged the connector (there are 3 connections, because I use an HDMI/DVI adapter).

Anyway. It's maybe working again? :)

PS: ReactJS

jhodgdon's picture

The subject of React came up briefly in the meeting yesterday (didn't really make it into the notes)... today on Drupal Planet this came up:
https://texascreative.com/blog/getting-started-react-drupal-8

I haven't read it so ... at your own risk.

If you don't know about Drupal Planet, it's an aggregator for Drupal-related blogs. See
https://www.drupal.org/planet
The sidebar has a little blurb about what it is:

Planet Drupal aggregates broadly appealing, Drupal-related blog posts pertaining to the community at large (code, advocacy, marketing, infrastructure etc.). If you would like your blog to be included in the Planet, read the requirements and steps on how to join.

along with a list of the 481 blogs currently shown, and a link to the page explaining how to get your blog listed:
https://www.drupal.org/drupalorg/docs/content/planet-drupal

At the bottom of the page is an RSS link to subscribe.

Spokane, WA

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: