So, the subject. I am currently working with customer of craftcms v2. I am setting up Structure Section where I want to add Entry Type for index listing of items and add some items in list.
So, here is my setup:
- Section: https://imgur.com/a/afXBU4M
- Section EntryType: https://imgur.com/a/ugkEkGh
- Field Settings tab: https://imgur.com/a/efAe0Kp
- Field Layout tab: https://imgur.com/a/4FuZcAZ
- Entry Example: https://imgur.com/a/KIxOdbO
I have 3 Entries added. I made this setup exactly the same as was for same page type (Structure Section too). But page I did throws error as in subject title.
I've googled and found that the key for 'entry' object in template using is to check this option in Section settings:
'Entries in this section have their own URLs'
I found that in this article: https://straightupcraft.com/articles/the-craft-entry-variable
So, what may be the problem? This option is checked. Also exactly the same page (called Features) works well! It's kind of magic I think.
Simple code in template raises the error: https://pastebin.com/fjqeb1LT I am using template in 'app/craft/templates/reviews/index.twig' folder.