We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

More than 50 rows in a Grid Field

How Do I?

NeilC's avatar
NeilC
24 posts
4 years ago
NeilC's avatar NeilC

I’m using a grid field for a photo gallery. It will let me create more that 50 rows in the entry form, but when viewed it shows only 50 rows of data.

The grid has 3 fields per row; image, thumbnail, and caption. The first 2 are for file fields, and the lest is a text input field. The Maximum rows setting is left blank. The template code for displaying the thumbnails and captions with links to the full images is:

{if gallery_images}
 <div class="photo-gallery">
  {gallery_images}
   <figure>
    <a href="{gallery_images:image}" target="_blank"><img src="{gallery_images:thumbnail}" alt="{blog_image:caption:attr_safe}"></a>
    <figcaption>{gallery_images:caption}</figcaption>
   </figure>
  {/gallery_images}
 </div>
{/if}

When the template is rendered, it only shows the first 50 pictures. I can’t figure out why. Can anyone help me?

       
NeilC's avatar
NeilC
24 posts
4 years ago
NeilC's avatar NeilC

Although I did not include the “limit” parameter, I’ve discovered that the grid has an undocumented default of 50. I still don’t see a way to set it to unlimited, but I am able to set it to something ridiculously high, and so far that is working.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.