<p>Welcome Ross! If you have 'Case Studies' as a <strong>Section</strong> and not a field, try changing your syntax to:</p>

<pre><code>{% for entry in craft.entries.section('caseStudies').find() %}

    {{ entry.title }}
    ...

{% endfor %}
</code></pre>

<hr>

<p>Here's an updated example, showing an additional custom field...</p>

<pre><code>{# 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 %}
</code></pre>

CC BY-SA 3.0
2016-04-04T11:42:08.427Z
Thanks Matt, I think my understanding of the template system is a bit wrong. I thought that if I added entry.caseStudies to the template then it would give the option for that field in the backend. Are there any guides/docs available on how to add Sections and Fields to templates?
Ross
CC BY-SA 3.0
2016-04-04T14:37:26.053Z
The contents of a custom field are retrieved using tags WITHIN the for-loop. e.g. {{ entry.title }}. Check out: https://craftcms.com/docs/templating/craft.entries. Each field-type has a different syntax for rendering or making use of it's contents: https://craftcms.com/docs/fields
Matt P
CC BY-SA 3.0
2016-04-05T19:18:40.437Z
Thanks - But is it possible to create custom fields like {{ entry.variable }}
Ross
CC BY-SA 3.0
2016-04-01T09:04:35.950Z
2016-04-04T15:49:37.620Z
2016-04-04T15:49:37.620Z
Matt P
<p>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"</p>

<p>I have a reference in the view file:</p>

<pre><code>{% for entry in entry.caseStudies %}
</code></pre>

<p>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.</p>

<p>Thanks</p>

CC BY-SA 3.0
2016-03-31T17:00:43.967Z
You do not need to add anything to the model to access field properties/values — craft handles all of this for you. You may want to double check that the field `caseStudies` is defined (and spelled correctly), and that it has been added to the field layout of the entry in question.
Douglas McDonald
CC BY-SA 3.0
2016-03-31T21:48:39.573Z
What type of field is `caseStudies` and how are you defining the initial `entry`? You'll probably want to rename it to `{% for anythingBesidesEntry in entry.caseStudies %}` so as not to clobber the original `entry` variable name.
Brad Bell
CC BY-SA 3.0
2016-04-04T11:43:46.073Z
Thanks I think my understanding of the template system is a bit wrong, If I don't add field properties/values and sections in the model then where to I define them?
Ross
<templating><entrymodel>
Error: Craft\EntryModel and its behaviors do not have a method or closure named "Case Studies"
# Error: Craft\EntryModel and its behaviors do not have a method or closure named "Case Studies"

(Asked by: username_0 on 2016-03-31)

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

**Tags:** templating, entrymodel
> **Comments:**
> **username_1**: You do not need to add anything to the model to access field properties/values — craft handles all of this for you. You may want to double check that the field `caseStudies` is defined (and spelled correctly), and that it has been added to the field layout of the entry in question.  
> **username_2**: What type of field is `caseStudies` and how are you defining the initial `entry`? You'll probably want to rename it to `{% for anythingBesidesEntry in entry.caseStudies %}` so as not to clobber the original `entry` variable name.  
> **username_0**: Thanks I think my understanding of the template system is a bit wrong, If I don't add field properties/values and sections in the model then where to I define them?  

---

## 1 answers

### Answer by username_3 on 2016-04-01. Score: 2 | Accepted answer

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 #}
    {{ entry.title }}

    {# Display the contents of the Intro Summary (plain text field) #}
    {{ entry.introSummary }}

{% endfor %}

> **Comments:**
> **username_0**: Thanks Matt, I think my understanding of the template system is a bit wrong. I thought that if I added entry.caseStudies to the template then it would give the option for that field in the backend. Are there any guides/docs available on how to add Sections and Fields to templates?  
> **username_3**: The contents of a custom field are retrieved using tags WITHIN the for-loop. e.g. {{ entry.title }}. Check out: https://craftcms.com/docs/templating/craft.entries. Each field-type has a different syntax for rendering or making use of it's contents: https://craftcms.com/docs/fields  
> **username_0**: Thanks - But is it possible to create custom fields like {{ entry.variable }}  

---

