I have two menu tabs. One showing "Where To Eat" and one showing "Places To Stay". Using the tags: {CompanyDirectory category="Where To Eat"} and {CompanyDirectory category="Places To Stay"} respectively.
I have modified the Summary templates as shown below:
Code: Select all
{if isset($catformstart)}
{$catformstart}
{$catdropdown}{$catbutton}
{$catformend}
{/if}
{if isset($messages)}
<div class="CompanyDirectoryMessage">
<ul>
{foreach from=$messages item='one'}
<li>{$one}</li>
{/foreach}
</ul>
</div>
{/if}
{if isset($errors)}
<div class="CompanyDirectoryError">
<ul>
{foreach from=$errors item='one'}
<li>{$one}</li>
{/foreach}
</ul>
</div>
{/if}
{if isset($items)}
<div>
{$firstlink} {$prevlink} {$pagetext} {$curpage} {$oftext} {$pagecount} {$nextlink} {$lastlink}
</div>
{foreach from=$items item=entry}
<div class="CompanyDirectoryItem">
{if $entry->picture_location ne ''}
<img src="{$entry->picture_path}" />
{/if}
<a href="{$entry->detail_url}">{$entry->company_name}</a><br />
{if $entry->details ne ''}
{$entry->details|truncate:200}
<a href="{$entry->detail_url}">read more</a><br />
{/if}
</div>
{/foreach}
{/if}
Here are links to the respective pages:
Where To Eat: http://www.tellerhomes.com/tellercounty ... ces-to-eat
Places To Stay: http://www.tellerhomes.com/tellercounty ... es-to-stay
Can anyone see what is going wrong? It's really odd because every company is added the same and using the same templates. Why would a company in one category display correctly while a company in another category break the page?
Please help if you can. This one has me stumped. Using Firebug I can see that the entry structure is different between the displayed results even though they are using the same templates.
Elkman