Sorting the $_items array according some field
Jamroom Developers
I'm not able to determine where I should put the above code. I tried several places but the template is showing blank page. Please help me here. Below is my item_list template.
{if isset($_items)}
{foreach from=$_items item="item"}
{if isset($item.venues_image_name)}
<div class="item">
<div class="container">
<div class="row">
<div class="col2">
<div class="block_image">
<a href="{jrProfile_item_url module="gsVenue"
profile_url=$item.profile_url item_id=$item._item_id
title=$item.venues_title}">{jrCore_module_function
function="jrImage_display" module="gsVenue"
type="venues_image" class="iloutline" item_id=$item._item_id
size="xsmall" crop="auto" alt=$item.user_name}</a>
</div>
</div>
<div class="col10 last">
<div class="p5">
<h3><a href="{jrProfile_item_url module="gsVenue"
profile_url=$item.profile_url
item_id=$item._item_id title=$item.venues_title}">
{$item.venues_title}</a></h3><br>
<span class="normal">{$item.venues_text|
jrCore_format_string:$item.profile_quota_id|
strip_tags|truncate:180}</span>
</div>
</div>
</div>
</div>
</div>
{/if}
{/foreach}
{/if}
Thanks.
updated by @dobmat: 07/25/14 07:10:20AM