I'm new to Craft and I'm stumbling at the first hurdle for Craft 3
I'm getting "Variable "entry" does not exist." and I'm certain it's something so simple I'm missing.
Case:
- Install craft 3 via composer
- Add a Single section called "Homepage" (URI: "/" | template: "index")
- Add "templates/index.twig" - test it with basic markup; displays correctly
- Add plain text field to homepage section ("homepageHeader")
- Fill out homepageHeader in control panel and save.
- Change template to literally only "{{entry.homepageHeader}}"
- Error above after page refresh
I must be missing something VERY simple. What is it?
homepage
entry directly in your cp list (with the world icon) do you receivea route not found
ortemplate does not exists
exception when you do that? Note: in order to set an entry as homepage you should leave the uri blank => no/
– Robin Schambach Mar 8 '18 at 18:48