List / pagination problem with custom module

SteveX
SteveX
@ultrajam
8 years ago
2,584 posts
After updating to 5.3 we have some problems with profile item listing and pagination in a custom module.

There are now many additional "blank items" listed using item_index.tpl with all of the actual items appearing on the last page. So we have 6 workbook items here: http://academicskills.uwe.ac.uk/general/workbooks/p=25 but now we have to go through to page 25 to see them - previously they were all on the first and only page.

This from item_index.tpl
    {capture name="row_template" assign="template"}
        {literal}
            {jrCore_module_url module="ujMicroSite" assign="murl"}
            {if isset($_items)}
            {foreach $_items as $_page}
            <div class="item">
                <h2><a href="{$jamroom_url}/{$_page.profile_url}/{$murl}/{$_page.micro_category_url}">{$_page.micro_category}</a></h2>
            </div>
            {/foreach}
            {/if}
        {/literal}
    {/capture}

    <div class="block_content">

        {jrCore_list module="ujMicroSite" profile_id=$_profile_id group_by="micro_category" order_by="micro_category asc" template=$template pagebreak="12" page=$_post.p pager=true}

    </div>
The workbook pages are similar to jrDocs pages (multiple sections in pages which are grouped into books using a category field). I don't think there is anything in listeners which would relate to this.

Any ideas how the 5.3 code may have caused this? Or how to fix it?

Thanks




--
¯\_(ツ)_/¯ 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: 05/19/16 06:07:59PM
SteveX
SteveX
@ultrajam
8 years ago
2,584 posts
I have fixed this by adding another search condition, but still interested to know what might have changed there.


--
¯\_(ツ)_/¯ 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 :)

Tags