Hi,
I'm wondering how to accomplish the following .
I have a sales.php template and a companies.php template with a relation in the sales template
I like to produce a list of companies that has a sales relation…
The problem I can't solve on the moment is, when a company has more than one relation this one would be displayed more the one times. How do I filter the list so that the related company only shows up once ?
I'm wondering how to accomplish the following .
I have a sales.php template and a companies.php template with a relation in the sales template
- Code: Select all
<cms:editable type='relation' name='company' masterpage='companies.php' has='one' />
I like to produce a list of companies that has a sales relation…
- Code: Select all
<cms:pages folder='open-invoices' include_subfolders='1' masterpage='sales.php' >
<cms:if "<cms:related_pages 'company' count_only='1' />" >
<cms:related_pages 'company' masterpage='companies.php'>
<cms:show k_page_title />
</cms:related_pages>
</cms:if>
</cms:pages>
The problem I can't solve on the moment is, when a company has more than one relation this one would be displayed more the one times. How do I filter the list so that the related company only shows up once ?