 Hi, my name is Jordan Thompson, and my presentation is on viewception, using views as in views. So let's get started. A little bit about me. I'm a back-end web developer. I've only been doing Drupal for about just over a year, but I've been learning lots and making some cool stuff, and I work at a digital kidnap for a 60-person plus Drupal shop located in London, Ontario. So I'll be doing a short introduction of views, just a reflection, and then we'll get right into the views field view module, which is how we're getting the views inside the views. We'll do a little bit of introduction, functionality, and some applications, and there's demos for both. Okay. So, views. Everyone might know about views, but they're pretty powerful. You can essentially take content, reorder it however you want, and make a display, and put it in blocks, pages, or attachments, even. So that's always fun. They're pretty powerful. Let's just walk through a demo real quick. We've got our content on this website, so we're going to make, and it has movies on it, so we're going to make a view called Drupal Blitz. I'm going to change this. You can filter by any kind of content you want. You can make a front-end list of fields. So I'll take it from here. We can just add our fields. I hope everyone can see this all right. It's not too open, so. So, we're going to add... Oh yeah, I suppose I should show what it looks like. This is just what our movies look like. It's just a title, our image, our body, and they're just kind of, like, not really sorted. Just kind of there. We're going to try to make that a little nicer look, which you can do. When we're organized, we've got the picture, got the title, genre, little description. They're nicely organized. We're going to go through a little bit of views. Go back into there. Anyone has any questions? Feel free to ask questions during the presentation. As long as I can see. Okay, so, let's talk about the Views field view module. So, essentially, the purpose of it is that you have a... It's literally a field that you can embed a view into. So you can... I personally use attachments just because it's a little cleaner. So, you attach the view, and then you can attach whatever component of the view in there. And you can actually set... You can actually pass variables from the parent view to the child view. So you can kind of set context for the child view inside of the parent view in case you want your list inside of the lists. I feel like it's a good way to, like, display, like, say, a list of a certain type of content. So, in my demo, we're going to do taxonomy. But then inside is going to be our movies, which are then filtered by taxonomy. So it's kind of interesting because you can't really do that together in one view, but you can do it in two views. And some of these cases are lists within lists. So, of course, if you had, like, a list, say, paginating on, like, 10 items, and then you had a list of, say, four inside of each of those list items, it would be kind of a neat thing to do. And I also thought maybe you could put that in tabs. So you have a view with multiple views inside of it, and each of those views are tabbed, like a tabbed structure. But they could have different content, different layouts. So that would be kind of neat too. And some real-life examples can happen real quick. I mean, everyone's probably been on, like, best buying stuff. So you can kind of see how they're, like, they got a list here, but they're all, like, you know, this is a four inside of the larger list, and this is also a four. So you can kind of see how we're showing there's a bigger list, but inside we have sublists that have their own list of content. So this is their own content type. I don't want to throw a demo. I already have, so we're going to be using our Drupal Flix that we just made, but I have a super Drupal Flix already made. Just starting in age. So right now, this guy just has taxonomy. But you're like, why don't I want my movies by taxonomy? And then you think, I could group them by taxonomy? Sure. But how do you control how many movies are in my sublist? Because if you just group by taxonomy, you have all of those movies. But this way, we can kind of control, say, we've got so much taxonomy showing and so much inner list showing, which is kind of like... So, so we're going to, first, go into this guy. We're going to duplicate him as an attachment. We're going to hide the movie category because we will have the movie category displayed. We're going to change this page. Actually, I'll show you when it looks like a movie. We're going to have... So you can see, pick your view, and it's going to look like our Drupal Flix. And I do know that this is a little buggy when you do have it, so it's not me. It is, in fact, the module Drupal Flix and our display. Okay, so we just added that attachment. It should be saved. If we save that, just as it is right now, the OR page, we've got our sub-list showing in our big list because, as you can see, all of the showings, taxonomy, turn, and add your list by the other view. So this is just all of the movies we have under one category because it doesn't have a sub-list. So it's just showing the whole view at all at the same time. So, why don't we filter this? So as you can maybe notice in here, we have a contextual filter spot. So, what we want to do, we add a term like D, bring this to the page, so we can grab it. And you can pass multiple variables in here as well. I pass a lot of taxonomy term lefties because I feel like that's a common use game. So we save that, we're going to go back to our Drupal Flix, and put in our contextual filter, Drupal Flix, and let's go to the top, and we'll approach. So, now we've got our movies a little more. We've got our actions up here, we've got our animated. So you can see they're now using that variable we're passing to then filter the inner list. Which is kind of nice. So then you're like, well, I want to kind of control how much it's in there. Okay, that's fine. Drupal Flix. And we're going to display a little bit of this, that's fine. I'm going to go to say two just to make it a little easier to look at. And then we're going to want to, in case there are more than two, because why not? So again, we've got two showing with a more than. It's pretty nice. So now you can be like, if I want to display my categories in a nice pageant interview, but I only want a certain number then that's what I got. So it's kind of neat. And then you can even make this more length-dependent to the filter taxonomy, if you'd like as well. Because you are passing the taxonomy. So I think that's kind of a neat way of showing how they work together. Okay. Anyone have any questions? Yeah, there was one, because you are, I did notice that when you do the inside of the child view, you're still running the child views query. Still, you're running both queries. So I remember an example. So we had a lot of empty children, but the parent doesn't know that the child's empty. It just says, I have children displaying my children. So what I had done, which might be, it might be a good way to handle it. I form or query altered the parent, attach the child views query to it, and then it only shows populated children. Performance issues, I haven't seen any too much in these, but like I've only used like not super complicated like setups. So my lists were a taxonomy and then like a list of four products in an example and then with a more length. And that would link to a full page of taxonomy. Does that answer your question a little bit? Any other questions? I think that's about it. Like I do notice that it's kind of odd that we can go to and or edit it. So if I take this I think it's a bit weird. I'm not entirely sure if it's fixed, but when you go ahead and you go to like select your it brings me to an edit or add field form, which is kind of long. But if you exit out of it and then go into it and then try to pick your content sometimes it doesn't link that either. So you have like a weird, anxious camera. But eventually you can get it so it's not too bad. Any other questions? Sorry if I spelled through that. But it's my first presentation. I'm a little nervous.