Answers.Body: <p>You're close! It's slightly counterintuitive but <code>group</code> is a property of a category. So you need to grab the group from an actual category. This would work:</p>
  
  <pre><code>{% set catName  = craft.categories.group('caseStudiesCategories').first.group %}
  </code></pre>
  
  <p>Basically you're getting the first category in the group and grabbing the group name (you could also use <code>[0]</code> instead of <code>.first</code>).</p>
  
  <p>If your entry has a category field, you can access the group name in a similar fashion:</p>
  
  <pre><code>{% set catName = entry.yourCategoryField.first().group %}
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-11-04T20:03:28.890Z
Answers.Text: No problem!  Assets, relations, and entries work more or less the same way so once you get that, everything else is cake.
Answers.UserDisplayName: RitterKnight
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-11-04T19:09:01.727Z
Answers.LastActivityDate: 2015-11-04T19:15:08.837Z
Answers.LastEditDate: 2015-11-04T19:15:08.837Z
Answers.UserDisplayName: RitterKnight
Body: <p>Having a bear of a time doing something which seems like it should be quite simple. I'm trying to display the category group name in my templates, using the handle and can't quite get it. I've explored the docs but haven't found much help there.</p>
  
  <p>I've tried:</p>
  
  <pre><code>{{ caseStudiesCategories }}
  </code></pre>
  
  <p>Error: Variable "caseStudiesCategories" does not exist</p>
  
  <p>As well as:</p>
  
  <pre><code>{%  set catName = craft.categories.group('caseStudiesCategories') %}
  {{ catName }}
  </code></pre>
  
  <p>Error: Object of class Craft\ElementCriteriaModel could not be converted to string</p>
  
  <p>Any thoughts or ideas?</p>
  
  <p>Thanks.</p>
  
Tags: <categories><category>
Title: Display Category Group Name in Template
ThreadText: # Display Category Group Name in Template
  
  (Asked by: username_0 on 2015-11-04)
  
  Having a bear of a time doing something which seems like it should be quite simple. I'm trying to display the category group name in my templates, using the handle and can't quite get it. I've explored the docs but haven't found much help there.
  
  I've tried:
  
  ```
  {{ caseStudiesCategories }}
  
  ```
  
  Error: Variable "caseStudiesCategories" does not exist
  
  As well as:
  
  ```
  {%  set catName = craft.categories.group('caseStudiesCategories') %}
  {{ catName }}
  
  ```
  
  Error: Object of class Craft\ElementCriteriaModel could not be converted to string
  
  Any thoughts or ideas?
  
  Thanks.
  
  **Tags:** categories, category
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2015-11-04. Score: 3 | Accepted answer
  
  You're close! It's slightly counterintuitive but `group` is a property of a category. So you need to grab the group from an actual category. This would work:
  
  ```
  {% set catName  = craft.categories.group('caseStudiesCategories').first.group %}
  
  ```
  
  Basically you're getting the first category in the group and grabbing the group name (you could also use `[0]` instead of `.first`).
  
  If your entry has a category field, you can access the group name in a similar fashion:
  
  ```
  {% set catName = entry.yourCategoryField.first().group %}
  
  ```
  
  > **Comments:**
  > **username_1**: No problem!  Assets, relations, and entries work more or less the same way so once you get that, everything else is cake.  
  
  ---
  
  