ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

All reverse related entries not showing

November 04, 2012 2:01pm

Subscribe [3]
  • #1 / Nov 04, 2012 2:01pm

    rainierresearch

    1 posts

    I am trying to output related entries on a page. It outputs the first 90, then stops. I tried duplicating the entry channel tag and using entry_id_from and entry_id_to to output several smaller sections of entries, but that didn’t help. If I change my sort order, it’ll show the beginning of the list as opposed to the end of my list, so I know all the data is there, but I can’t get it all to show up for me at once. Is there some sort of built in limit to posts per page that I can disable? Is there something else I’m doing wrong?


    Here is my code:

    {embed="temp/html_open" page_name="previous_studies"}
            <div class="main-content">
             <div class="primary-content"> 
                 <div class="title-module">
                     <h2 class="title">Previous Clinical Studies</h2>
                    </div>
                    
                        Interested in learning more about our past and current studies? Just click on the list of studies to the right and you will find a synopsis of the selected study below.
                    
                    {exp:channel:entries channel="previous_study_categories" require_entry="yes" }
                        {if no_results}
                        <div class='study-wrapper'>
                            No study information has been entered for this topic.
                        </div>
                        {/if}
                        <h3 class='study-super-title'>{previous_study_category}</h3>
                        {reverse_related_entries id="previous_study_relationship" orderby="title" sort="desc"}
                        {if no_reverse_related_entries}
                        <div class='study-wrapper'>
                            No previous study information has been entered for this topic.
                        </div>
                        {/if}
                        <div class='study-wrapper separator'>
                            <h4 class='study-title'>{title}</h4>
                            {previous_study_information}
                        </div>
                        {/reverse_related_entries}
      {/exp:channel:entries}
    
                </div>
                <div class="secondary-content">
        
         {exp:channel:entries channel="previous_study_categories" orderby="previous_study_category" sort="asc" dynamic="no"}
         <a href="http://{url_title_path=%27previous-studies%27}" class='study_info'>{previous_study_category}</a> 
         {/exp:channel:entries}
                    
                </div>
            </div>
    {embed="temp/html_close"}
  • #2 / Nov 05, 2012 9:38am

    Jon Horton

    38 posts

    Hello!

    By default, EE limits the number of entries returned to 100.  I would try increasing the limit to something like limit=“200” on your reverse related entries tag:

    {reverse_related_entries id="previous_study_relationship" orderby="title" sort="desc" limit="200"}
  • #3 / Nov 05, 2012 8:51pm

    rainierresearch

    1 posts

    That did the trick, thank you so much 😊

  • #4 / Nov 05, 2012 10:21pm

    Jon Horton

    38 posts

    Awesome, glad that worked for you!

  • #5 / Nov 06, 2012 10:45am

    Shane Eckert

    7174 posts

    Hey there rainierresearch,

    Glad to see that Jon was able to help you out. This one gets a lot of people.

    Thanks for the help Jon.

    If you need anything else, please just let me know by opening a new thread.

    Cheers,

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases