jrSeamless nested in template, always 0 results

SteveX
SteveX
@ultrajam
11 years ago
2,589 posts
I am using Seamless to list items from several modules. Each item can load in a template which contains another jrSeamless_list. But that nested list always returns 0 items even when valid items definitely exist. The list row template is parsed, but the number of results is always 0.

I'm not sure why or what causes this, so just posting to ask if anyone else has seen anything similar.


--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)

updated by @ultrajam: 03/08/14 03:02:37PM
douglas
@douglas
11 years ago
2,807 posts
I haven't used the seamless module yet, can you show us the functions your using?


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
brian
@brian
11 years ago
10,149 posts
SteveX:
I am using Seamless to list items from several modules. Each item can load in a template which contains another jrSeamless_list. But that nested list always returns 0 items even when valid items definitely exist. The list row template is parsed, but the number of results is always 0.

Just want to say that Seamless is a bit of a "heavy hitter" - running seamlist lists from within another seamless list template is going to be slow, and you may run into memory issues depending on what you're doing.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
SteveX
SteveX
@ultrajam
11 years ago
2,589 posts
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


--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)
SteveX
SteveX
@ultrajam
11 years ago
2,589 posts
brian:
Just want to say that Seamless is a bit of a "heavy hitter" - running seamlist lists from within another seamless list template is going to be slow, and you may run into memory issues depending on what you're doing.

Ok thanks Brian. I guess I'll need to ajax it into the page.


--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)
SteveX
SteveX
@ultrajam
11 years ago
2,589 posts
I think that the problem here is that Seamless uses order_by="_item_id numerical_asc" as the default, which returns no items. When I add an order_by to the list function the correct results are returned.


--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)
brian
@brian
11 years ago
10,149 posts
SteveX:
I think that the problem here is that Seamless uses order_by="_item_id numerical_asc" as the default, which returns no items. When I add an order_by to the list function the correct results are returned.

That's good to know - we can get a check for that in the code.

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net

Tags