Getting correct title to output - Cascade problem?

I've been reading https://docs.statamic.com/knowledge-base/wrong-variables and wondering if this is the cause of an issue I'm having. So far I've not cracked it.

I have a collection loop, where the entries feature a taxonomy and a checkbox fieldtype, and at the moment, I can get the {{ value }} to output a value, but not the {{ title }}. The parent entry title outputs instead.

Here is a condensed version of what I have (just showing the relevant fields):

{{ collection:networking :taxonomy:country="slug" as="entries" }}   

        {{ entries }}
        <div>        
            {{ expertise }}
               {{ value }}
            {{ /expertise }}       


            {{ if works_in }}
                {{ works_in }}
                    {{ value }}
                {{ /works_in }}</p>
            {{ /if }}            
        </div>
        {{ /entries }}

    {{ /collection:networking }}

In this example, 'expertise' is checkbox fieldtype, and 'works_in' is a taxonomy fieldtype that uses a 'country' taxonomy. Entries are grouped by the country taxonomy. 'If I change {{ value }} to {{ title }} I just get the collection entry title, instead of the title associated with the value in the fieldset or taxonomy.

Here's an example entry, with fields reduced to relevant ones:

organization: 'Company Name'
expertise:
  - special-skill
works_in:
  - country/brazil
  - country/columbia
title: 'Persons Name'
country:
  - argentina

Can anyone see where I'm going wrong?

Answered by Erin Dalzell!
>>>>>>> Answered <<<<<<<
7 Replies
3 Followers