Error: Craft\EntryModel and its behaviors do not have a method or closure named "Case Studies" I'm new to Craft CMS dev and I'm trying to create a template using Twig and I'm getting this error: Craft\EntryModel and its behaviors do not have a method or closure named "Case Studies"

I have a reference in the view file:

{% for entry in entry.caseStudies %}


I'm assuming there's a config file or somewhere I can add this to the EntryModel but I'm not sure where this is in the default Craft installation. Any suggestions are welcome.

Thanks
Welcome Ross! If you have 'Case Studies' as a Section and not a field, try changing your syntax to:

{% for entry in craft.entries.section('caseStudies').find() %}

    {{ entry.title }}
    ...

{% endfor %}




Here's an updated example, showing an additional custom field...

{# Find all Entries in the Case Study section #}
{% for entry in craft.entries.section('caseStudies').find() %}

    {# Display the entry's Title #}
    &lt;h2&gt;{{ entry.title }}&lt;/h2&gt;

    {# Display the contents of the Intro Summary (plain text field) #}
    &lt;p&gt;{{ entry.introSummary }}&lt;/p&gt;

{% endfor %}