zpMasonry news links in search

I have enabled content from news items as well as images to be returned in a search. If infinite scroll is not enabled, the news items do apepar at the end of the first page.

With infinite scroll enabled, the items appear after the first batch of images are fetched and then followed by additional images as they appear. Is there any way to have the news items all at the top (or bottom)? Intermixed with the images just doesn't look pleasing to me ... Or perhaps have option to disable infinite scrolling on search pages which might be easier to implement.

Comments

  • gjr Member
    Or perhaps have option to disable infinite scrolling on search pages which might be easier to implement.
    When infinite scroll is disabled in the options, it is disabled in search as well so you should see normal pagination. Are you not?
  • Yes it works fine with infinite scrolling disabled globally, but I really like it for my other pages. Is there some code for me to incldue on the search.php page to disable the infinite scrolling just in the search pages?
  • gjr Member
    To remove infinite scroll from search only, open up the search.php theme file. Starting on line 111, change:

    `

    <?php if ($zpmas_infscroll) { ?>



    <?php } else {<br />
    if ( (hasPrevPage()) || (hasNextPage()) ) { ?>



    <?php } ?>

    <?php } ?>

    `

    to just this:

    `

    <?php if ( (hasPrevPage()) || (hasNextPage()) ) { ?>



    <?php printPageListWithNav("← ".gettext("prev"), gettext("next")." →"); ?>



    <?php } ?>

    `
Sign In or Register to comment.