I'm having trouble getting var_prefix to work with the exp:playa:parents tag.
Here's my code:
{exp:channel:entries
channel="skills"
orderby="title"
sort="asc"
category="65"
parse="inward"
disable="member_data|pagination|category_fields"
}
<p>{title}</p>
{exp:playa:parents
channel="skills"
entry_id="{entry_id}"
var_prefix="pre"
}
{if pre:total_results > 1}
{if pre:count == 1}
<a data-toggle="modal" data-target="#content-{entry_id}"><span class="glyphicon glyphicon-info-sign"></span></a>
{/if}
{/if}
{/exp:playa:parents}
{/exp:channel:entries}
I'm trying to achieve two things:
I would like to get the total_results and count variables for the results from the playa tag and not the parent exp:channel:entries tag.
I would like to get the exp:channel:entries {entry_id} inserted in this line data-target="#content-{entry_id}" rather than the {entry_id} from the exp:playa:parent entry.
Any help would be appreciated.