From the course: Drupal 9 Essential Training: 5 Layout
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Exposing filters for visitor interaction - Drupal Tutorial
From the course: Drupal 9 Essential Training: 5 Layout
Exposing filters for visitor interaction
- In this video, I want to accomplish two things in our latest news, view. One. I want to make the titles into an H3 tag. Which is a little tricky because they're actually in a table. And secondly, I want to expose the filter to our visitors, that says, "hey go ahead and choose between news and press releases." Alright, let's do that. Click on the pencil icon for the view. Click edit view. And let's take care of the title first. Click on the word content:title. Now with views, there's a little bit to learn here. If I click on style settings and customize the field HTML. You would think that changing this to an H3, would work and typically it does, but it doesn't in this particular theme. So there's a way around that. I'm going to uncheck that, and I'm going to click on rewrite results. And this allows us to override the output of this field with custom text. Put a check mark in there and I want it…
Contents
-
-
-
-
(Locked)
Views explained2m 30s
-
Adding the business directory view5m 58s
-
(Locked)
Adding the news and press release view3m 41s
-
(Locked)
Exposing filters for visitor interaction3m 18s
-
(Locked)
Adding an events calendar view6m 47s
-
(Locked)
Creating a related content view8m 36s
-
Image styles explained5m 50s
-
(Locked)
Image styles for media5m 13s
-
(Locked)
-