Docs Navigation Open
Templates, TVs, and Snippets
See how templates, TVs, chunks, snippets, and plugins divide structure, data, presentation, and logic in real projects.
Template
A template is the page-level structure. In classic Evolution it is mostly HTML with Evolution tags. In Evo 3 it may also be backed by Blade views.
<!doctype html>
<html lang="[(lang_code)]">
{{head_tags}}
<body>
{{site_header}}
[*content*]
</body>
</html>
TV (Template Variable)
A TV stores extra structured data for a resource. Typical TVs are subtitle, price, image, date, file, color, relation, or repeated field groups.
<h1>[*pagetitle*]</h1>
<p class="subtitle">[*subtitle*]</p>
<img src="[*hero_image*]" alt="[*pagetitle*]">
Chunk
A chunk is a reusable fragment of markup or text. Chunks are used for headers, cards, mails, listings, and other repeating output.
{{site_header}}
Snippet
A snippet is PHP logic that returns output. Classic listing, forms, navigation, and filtering in Evolution often depend on snippets.
[[DocLister? &parents=`12` &tpl=`news_row` ]]
[[Wayfinder? &startId=`0` &level=`2` ]]
[[FormLister? &formid=`feedback` &controller=`Form` ]]
How They Work Together
- the template defines the page skeleton
- TVs store structured values for that template
- chunks hold reusable presentation fragments
- snippets query, process, and render dynamic data
Classic Helper Extras
- PHx extends tag output with modifiers and conditions
- ManagerManager reshapes manager edit forms for editors
- multifields, multiTV, and cfgTv add field-level modeling help
See also Cheat Sheet, Lists, Forms, and Search, and Legacy Extras.
Resources
Understand how resources are stored, how the tree works, and how SiteContent can be queried in code.
Media and Files
Organize uploaded files and media fields so editors stay fast and templates stay predictable.