normalizeColums

`$firstPageImages = normalizeColumns('1', '4');`

Ok so ... my index.php displays 3 colums of albums and my search displays 4 colums of albums.

Would '1' be the best number to use as I have it now?

Comments

  • Please read the function description for normalizeColumns(). Specially the bit for the parameters. You will see from that the first parameter is the number of album thumbnails that the CSS will place in a row. The second parameter is for the image thumbnails.

    So given your description the call should be `$firstPageImages = normalizeColumns('3', '4');`
  • Yeah, I read it before posting... I'm just not sure what it means for my gallery as I have 2 different frameworks that involve albums.

    On my main page `index.php` i have 3 colums or 3 albums per row. However; on my search page `search.php` i have 4 colums or 4 albums per row.

    oh yeah... I guess I should specify that I have a header file that is called on all pages and it's in this header page where that function resides.

    Could I place the function elsewhere or does it have to be at the very top?
  • The function call can go anywhere before the next_album() next_image() loops.

    Of course you would have to have a different parameter set for your index.php page than your search.php page. (And maybe your album.php page? that also would be involved.)

    But you should be cautioned that breadcrumbs are unlikely to work for you because the pagination must be computed each page load. So if you have different layouts it will not compute the proper page to return to.
Sign In or Register to comment.