Hi,
I have a system running 2.10.1. The code is looping through entries, then for each entry it is looping through related entries from another channel.
The sub-loop is in a snippet called inside the exp:channel:entries loop. The code works on the development server and it used to work on the production server as well.
On the production server it stopped working at some point and I can’t make it work.
This line can’t catch the last result anymore:
{if routes:count == routes:total_results}
Did anyone have an experience like this before?
Thanks, Luke
{routes}
{if routes:count == 1}
<div class="e-lee-routes">
<a href="http://%22class=%22e-leer-header{if" class="e-leer-header{if segment_2 == url_title} t-open{/if}">Routes</a>
<div class="e-leer-wrapper"{if segment_2 == url_title} >
<div class="m-list t-no-columns t-route">
<ul class="c-l-list">
{/if}
<li class="c-ll-item">
<a href="http://{path=class=c-lli-link">{routes:route_nr} - {routes:route_name}</a>
{embed="locations/_bulletins" entry_id="{routes:entry_id}"}
</li>
{if routes:count == routes:total_results}
</ul>
</div>
</div>
</div>
{/if}
{/routes}
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.