I have a page full of team profiles, my template is set up like so:
I've done it as a nested page so that I can re-order the individual profiles.
This works fine, however I need to display related profiles on different service pages which again I have working fine, the only issue is I can't get them to order the same as the profiles page on the service pages, what would I need to use in the orderby field? I have a field called mem_area which lists all of the services in a profile and I check the ones that are relevant. I've then done a reverse_related_pages which shows the profiles correctly, just in the wrong order
Thanks in advance.
Chris
- Code: Select all
<cms:template title='Our People' clonable='1' nested_pages='1'>
I've done it as a nested page so that I can re-order the individual profiles.
This works fine, however I need to display related profiles on different service pages which again I have working fine, the only issue is I can't get them to order the same as the profiles page on the service pages, what would I need to use in the orderby field? I have a field called mem_area which lists all of the services in a profile and I check the ones that are relevant. I've then done a reverse_related_pages which shows the profiles correctly, just in the wrong order
- Code: Select all
<cms:reverse_related_pages 'mem_area' masterpage='our-people.php'>
<div bp="3@md" class="card">
<figure>
<img src="<cms:show mem_thumb />" alt="<cms:show k_page_title />" width="450" height="540">
<div>
<h3><cms:show k_page_title /></h3>
<h4><cms:show mem_position /></h4>
</div>
<a href="/our-people/<cms:show k_page_name />"></a>
</figure>
</div>
</cms:reverse_related_pages>
Thanks in advance.
Chris