solved jrCore list on the same page

Nmaster88
Nmaster88
@nmaster88
9 years ago
94 posts
I have something like this, where only one result is returned.:
{jrCore_list module="jrYouTube" search1="youtube_title like `$_post._1`%" search2="_item_id in `$_conf.wmWowMusic_front_slider_video_1`%" page=$_post.p}

My question is, if there is a way to get the item returned on the same tempalte this function is called?
updated by @nmaster88: 05/25/16 11:36:55PM
douglas
@douglas
9 years ago
2,790 posts
If I understand you correctly, you can use capture and literal tags to create a jrCore_list template in the same template as the jrCore_list function.


{capture name="youtube_template" assign="youtube_row_template"}
    {literal}
       {if issset($_items)}
           {jrCore_module_url module="jrYouTube" assign="yurl"}
           {foreach $_items as $item}
               Row variables go here...
           {/foreach}
       {/if}
    {/literal}
{/capture}
{jrCore_list module="jrYouTube" search1="youtube_title like `$_post._1`%" search2="_item_id in `$_conf.wmWowMusic_front_slider_video_1`" template=$youtube_row_template page=$_post.p}



--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
Nmaster88
Nmaster88
@nmaster88
9 years ago
94 posts
douglas:
If I understand you correctly, you can use capture and literal tags to create a jrCore_list template in the same template as the jrCore_list function.


{capture name="youtube_template" assign="youtube_row_template"}
    {literal}
       {if issset($_items)}
           {jrCore_module_url module="jrYouTube" assign="yurl"}
           {foreach $_items as $item}
               Row variables go here...
           {/foreach}
       {/if}
    {/literal}
{/capture}
{jrCore_list module="jrYouTube" search1="youtube_title like `$_post._1`%" search2="_item_id in `$_conf.wmWowMusic_front_slider_video_1`" template=$youtube_row_template page=$_post.p}

Hello Douglas, thanks for the reply. I'm trying to do something like this:

        {capture name="youtube_template" assign="youtube_row_template"}
            {literal}
               {if issset($_items)}

                   {foreach $_items as $item}
                        {$item.youtube_artwork_url}
                        {$item.youtube_title}
                   {/foreach}
               {/if}
            {/literal}
        {/capture}
        {jrCore_list module="jrYouTube" template=$youtube_row_template  search1="_item_id in `$_conf.wmWowMusic_front_slider_video_1`%" page=$_post.p}


But it's not working, maybe something is wrong...
douglas
@douglas
9 years ago
2,790 posts
Do you have a $_conf.wmWowMusic_front_slider_video_1 setting in your ACP > Skin Settings?

And are they YouTube video ID's that were created on your Jamroom site?

Also, if your wanting to use the pagination system, you may want to add a pagebreak and pager parameter to your jrCore_list call.

{capture name="youtube_template" assign="youtube_row_template"}
            {literal}
               {if issset($_items)}

                   {foreach $_items as $item}
                        {$item.youtube_artwork_url}
                        {$item.youtube_title}
                   {/foreach}
               {/if}
            {/literal}
        {/capture}
        {jrCore_list module="jrYouTube" template=$youtube_row_template  search1="_item_id in `$_conf.wmWowMusic_front_slider_video_1`%" pagebreak="5" page=$_post.p pager=true}



--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos

Tags