ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Pagination Questions

February 05, 2008 7:31pm

Subscribe [2]
  • #1 / Feb 05, 2008 7:31pm

    Cliff Persaud

    13 posts

    I’m a bit of a noob and I’ve set up an image gallery http://www.bhearn.com/index.php/portfolio/gallery-index.php

    The thumbnail links are set to point back to the gallery-index template.  Then the individual entry info is used to post the larger image
    I’ve got a few problems with pagination.  When I select a thumbnail on any page other than page one I get booted back to the first page.  Any suggestions?  I’ve also turned off dynamic in my gallery tag mainly because if I leave it on for some reason my gallery doesn’t work.  Could this be the problem? Included below is a sample of my code.  Any help would be greatly appreciated.

    {exp:gallery:entries gallery="portfolio"  columns="4" rows="3"  dynamic="off" }
    <table >
    
    {entries}
    
    {row_start}<tr>{/row_start}
    
    {row}
    <td>
    [b]<a href="http://{id_path=portfolio/gallery-index}">_/phpthumb/phpThumb.php?src={image_url}&w=30&sx=50&sy=50&sw=250&sh=250&aoe=1_</a>[/b]
    </td>
    {/row}
    
    
    
    {row_end}</tr>{/row_end}
    
    {/entries}
    </table>
    
    <!--PAGINATION BEGINS-->
    {paginate}
    
    
    Page {current_page} of  {total_pages} pages 
    
    
    {if previous_page}
    
    <a href="http://{auto_path}">Previous Page</a>  
    {/if}
    
    {if next_page}
    <a href="http://{auto_path}">Next Page</a>
    {/if}
    
    
    
    {/paginate}
    {/exp:gallery:entries}
    (exp:gallery:entries gallery="portfolio"}
    
    [b]{image_url}[/b]
    
    {/exp:gallery:entries}
  • #2 / Feb 05, 2008 9:28pm

    tbritton

    714 posts

    I’ve also turned off dynamic in my gallery tag mainly because if I leave it on for some reason my gallery doesn’t work.  Could this be the problem?

    Pagination will not work with dynamic set to “off”.
    Next/Previous entry linking will, however. Keep in mind that these have to be outside of the weblog:entries tags, whereas pagination sits inside.

    If the gallery isn’t working with dynamic=“on” then something must be being placed into the url field by a link or something. Dynamic reads the url segments to figure out what it is supposed to be doing.

    Terry

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases