I'm looping through channel entries. When I try to output the value of a relationship field, I seem to be getting some sort of numerical id (it's not the entry id of the current channel or the channel it is related to; I checked). What exactly is that number? How is this number related to the channel it relates to?
Ultimately, I'm trying to change the structure of the data for some other use later on. So, is there anything in the two channels that are identical so that I can connect the two?
UPDATE 1: code snippet
<ul>
{exp:channel:entries channel="regions" sort="asc" orderby="title" disable="categories|member_data|pagination"}
<li>{title} - {entry_id}</li>
{/exp:channel:entries}
</ul>
<?php $formatted_branches = array(); ?>
{exp:channel:entries channel="regions" sort="asc" orderby="title" disable="categories|member_data|pagination"}
{reverse_related_entries sort="asc" orderby="title" channel="branch"}
<?php
$formatted_branches["{participant_status}"]["{region}"]["{parent_company}"][] = array('branch_name' => "{branch_name}");
?>
{/reverse_related_entries}
{/exp:channel:entries}
<?php var_dump($formatted_branches); ?>
{region}
seems a bit useless. I need to be able to relate it to list items in theul
above.