You can set up multiple different types of paragraphs, and it also uses view mode. What the paragraphs module gives us is an entity that has configurable fields. For those that aren't super familiar, we're going to do a really quick overview. The prereqs for this is just a familiarity with Drupal 8, with Twig, with PHP, and the paragraphs module. That's what we're going to be going through today. Finally, maybe a very important one is when you're debugging, how do you do it without running out of memory or getting the white screen of death. Also if you haven't worked with render arrays, this is going to be your chance to dive into custom render arrays and Twig templates.Īlso a really a use case that everyone is familiar with, reference entities when you have fields that reference other nodes or taxonomy terms, pulling in that data into your Twig templates. This talk is quite opinionated in how I like to do things so take that with a grain of salt, but the steps that we're going to go through will apply for any situation we're using paragraphs. The outcomes of this talk, I wanted to just start out and this is what I want you to leave this talk with.įirst is that you would be able to preprocess your paragraphs and structure your preprocessing methods. I'm going to leave this up just for a few more seconds and we'll stop and start into what we're going to go over in our talk. If you don't use the proper casing sometime- In the last session that I gave this talk, it's like a view dependency so just be aware. Just to note that this is case sensitive so it's git.io/fjf6Y. I'm going to pause here just for a second in case people want to check out the sample module that I have for preprocessing paragraphs. You can find us on the web at these two places and in real life at Booth 516. I work for Chromatic, we're a fully distributed team. This is the dog that my wife and I just adopted, she was the partner and listened to me practice this a ton so just giving a shout out to her. We'll pause on the link when we get to it in a few slides. If you've trickled in, the slides are posted on the session notes so you can download and follow along there and there's a GitHub repo, a sample one in the slides as well. This is Preprocessing Paragraphs, A Beginner's Guide. Larry Walangitan: Good afternoon everyone.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |