Hello Admin,
I run into another problem trying to use the relationship feature.
The problem: I am trying to get the IDs of agents of properties that are at a particular location like this:
*Property status: For rent | For sale *Agent location: the location is question
Code: Select all
<cms:pages masterpage='property.php' folder="<cms:show property_status />" custom_field="location=<cms:show agent_location />">        
        <cms:related_pages  'property_poster' >
            <cms:show k_page_id />
        </cms:related_pages><cms:if "<cms:not k_paginated_bottom />" >,</cms:if>

        <cms:no_results >
            <cms:set no_results='1' 'global' />
        </cms:no_results>
    </cms:pages>


However I keep getting some funny looking output with repeating agent ids. I know agents posts multiple properties and that explains the repeating ids but all I want is to output the IDs once for each ID.

The output:
Code: Select all
 14        ,
                   
                               







14        ,
                   





,,,,,





,,,,,
                    124  ,,,,






124,,,



14,




34,,,




56
,
,
67   


Thank you