Forum for discussing general topics related to Couch.
3 posts Page 1 of 1
I have a page full of team profiles, my template is set up like so:

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
Anyone got any ideas? I just want the same order as the initial page.
Hi,

You mentioned -
I've done it as a nested page so that I can re-order the individual profiles.

Nested-pages should only be used when the requirement is to 'nest' pages so as to create an hierarchy;
for simple manual ordering, the normal clonable pages suffice.

Please find the "Manually reorder normal cloned pages" section in the post below -
viewtopic.php?f=5&t=10241

It shows how to use the <cms:config_list_view> block for setting up manual ordering.
It also shows how to match that order on the front-end (the same would work for <cms:reverse_related_pages>).

So, please set nested_pages='0' in your template to revert it back to a normal template first and then use the method shown above for your solution.

Hope this helps.
3 posts Page 1 of 1