jrSeamless nested in template, always 0 results
Using Jamroom
douglas:I haven't used the seamless module yet, can you show us the functions your using?
Seamless is really neat. I'm using it to list mixed content into grids, which seems to be popular around the web at the moment.
{capture name="row_template" assign="template"}
{literal}
{if isset($_items)}
<div id="xgrid">
{foreach $_items as $item}
{assign var="image_type" value="`$item.seamless_module_prefix`_image"}
{assign var="seamless_item_title" value="`$item.seamless_module_prefix`_title"}
{if !strlen($description) > 1}
{assign var="seamless_item_title" value="`$item.seamless_module_prefix`_name"}
{/if}
{assign var="description" value="`$item.seamless_module_prefix`_text"}
{if !strlen($description) > 1}
{assign var="description" value="`$item.seamless_module_prefix`_description"}
{/if}
{if !strlen($description) > 1}
{assign var="description" value="`$item.seamless_module_prefix`_bio`"}
{/if}
{jrCore_module_url module=$item.seamless_module_name assign="murl"}
<div class="griditem">
<h3>{$item.seamless_module_name|substr:2}: {$item.$seamless_item_title}</h3>
{jrCore_module_function function="jrImage_display" module=$item.seamless_module_name type=$image_type item_id=$item._item_id size="small" alt=$item.profile_name}
{$description}
{$specialsauce}
</div>
{/foreach}
</div>
{/if}
{/literal}
{/capture}
{jrSeamless_list modules="jrBlog,jrAudio,jrProfile" order_by="_created NUMERICAL_DESC" template=$template}
The nested part is just a list and template:
{jrSeamless_list modules="jrBlog,jrAudio,jrVideo" search1="_profile_id = `$item.profile_id`" limit="4" template="ujModule_jrSeamless_item_list.tpl"} I'm going to use it to list a profile's top 4 rated items