2026 Community Survey results are here! See how the Craft CMS community works. results are live!

Creating the Entry Handler Template

So far into the course and we're just doing Entry templates? Yes, but all of this prep work is going to speed things up. Let's make the entries come alive!

Back in the con­trol pan­el, if we look at the sec­tions in the site, we notice that all of the sec­tions have the same entry tem­plate defined, just the tem­plate called entry, which lives in the root of the templates directory.

This is because the entry tem­plate is the han­dler tem­plate that han­dles all of the indi­vid­ual entry requests for all sec­tions in the site. Because we keep it very gener­ic, we only need to cre­ate one of those. We can cre­ate sup­port­ing tem­plates that do more spe­cif­ic implementation.

Transcript

Premium

Follow along with the full transcript

Search every word, click any line to jump to that moment, and read along as you watch — a CraftQuest Premium feature.

Sign up for Premium
Topic
Instructor
Level
Intermediate
Date Published
February 12, 2021