Unlimited Plugins, WordPress themes, videos & courses! Unlimited asset downloads! From $16.50/m
by
Lessons:33Length:3.7 hours
Drupal 8 1
  • Overview
  • Transcript

5.12 Creating a Custom Security Conferences Page

Since we have three main topics that we are covering on our website at the moment, let's begin creating some custom views in the main navigation menu bar that will allow users to be able to view the conferences that cover those specific topics. Once again, a view is the tool for the job.

5.12 Creating a Custom Security Conferences Page

In this lesson I want to take you back into the world of creating another custom view. And I'm going to show you how we can integrate this process of the custom views as a page with our taxonomy that we created a couple lessons back. So let's say now that we want to really highlight, at this particular time, the security conferences or conferences that are going to cover security within our site. So that people can kinda narrow it down that are interested in that, and maybe get right to that type of data. It's actually quite simple, and we've done it before and I'm gonna throw a little bit of a change in there just to show you that there's different ways or multiple ways to accomplish this task. So right now I wanna come in, and I want to go to structure. And I'm gonna come down to the bottom, and once again go into Views, and I'm gonna create a new view. This view is going to be called Security Conferences. And we want to view Content of type, Conferences, and we're going to go with the Newest first, that should be fine. We want to Create a page that is going to be called Security Conferences. So once again, you can call this anything you want, or whatever you want to really focus in on for this particular page. And we'll leave the defaults here and remember with the teasers, because we used DevIL, there's gonna be a lot of data in there. So if you wanna adjust that you can, but once you actually start to put real data in here then it's gonna look, basically exactly like you would anticipate it to. I feel like 10 is probably a good number of items to display, and we can use a pager, I think that's fine. So let's Save and edit, and this is going to take us to our display page, and what I wanna do now is I wanna tweak this just a little bit. Because if I were to leave it this way, it's going to show all security conferences and I don't want that. I want just the security conferences that are going to cover security as a topic. So what I can do, is I can come into my Filter Criteria, and I can add a new filter, just like we did before. And once again I'm going to take a look for Conference, and once I have Conference I can scroll down just a little bit and I can find Conference Topics right here. Now remember you want to filter unconferenced topics not on the Delta. They are two different things, so make sure you select the Conference Topics, and then we're going to select that check box. We're going to Add and configure the filter criteria, and now we get a couple of options. Now it notices that the topics is actually an entity reference to a taxonomy, so see, Drupal is incredibly smart, really wants to hold your hand along the way to make sure you're getting exactly the functionality that you want. So this case I can select the vocabulary that I want, in this case I want it to be topics, and then I wanna select how I'm going to select. It could be a Dropdown or Autocomplete, because I know what I'm looking for, I think Autocomplete is fine for now. So let's go ahead and Apply and continue, and now I can select my Operator, so that I can choose which, either version or variation or numbers of these terms within my taxonomy, I would like to select. And in this case I want to make sure that it is one of Security since that is the view that I'm looking to create. So, I can come down to the bottom now and select Apply and here are the final changes that I have. I'm gonna make sure that I click Save, so that everything has been correctly saved. And now, in this case, let's go ahead and grab this path, that is the path that I want to go to when I create my menu link. So, now that I have that selected and my Security Conferences view page has been created, I'm gonna come back in to Structure. I'm gonna go down into Menus, I'm gonna go in to my Main navigation and Edit this menu. And let's go ahead and add a new link, and this is going to be, like I said before, this is going to be Security Conferences. And now I can paste my link in here, and Drupal is gonna know exactly what this is, and provide the appropriate navigation link to that location. I wanna make sure that this is enabled, and now I can come down and make sure that the Parent link is the main navigation and go ahead and click Save. So once I've done that, I can come back to my site, and now I see Home and I also have Security Conferences so I can click on that. And it's gonna take me to a page, or a view, that is going to contain all of the security conferences that I have within my system. So this is a nice way to be able to take advantage of these taxonomies that we've created, to be able to further filter down into certain collections of content that our users would really be interested in.

Back to the top